Skip to content

Commit

Permalink
Update CS on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mehigh committed Oct 30, 2023
1 parent 3f5150c commit 74ac68c
Showing 1 changed file with 37 additions and 19 deletions.
56 changes: 37 additions & 19 deletions tests/phpunit/class-test-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ public function test_settings_init__field_analytics_types() {

$this->assertSame( array( $this->settings->fields[0], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'analytics_types'
), $field['args'] );
$this->assertSame(
array(
'class' => 'analytics_types',
),
$field['args']
);
}

public function test_settings_init__field_gtag_id() {
Expand All @@ -128,9 +131,12 @@ public function test_settings_init__field_gtag_id() {

$this->assertSame( array( $this->settings->fields[1], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'ga_id'
), $field['args'] );
$this->assertSame(
array(
'class' => 'ga_id',
),
$field['args']
);
}

public function test_settings_init__field_measurementVersion() {
Expand All @@ -151,9 +157,12 @@ public function test_settings_init__field_measurementVersion() {

$this->assertSame( array( $this->settings->fields[2], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'dimension measurement_version_dimension',
), $field['args'] );
$this->assertSame(
array(
'class' => 'dimension measurement_version_dimension',
),
$field['args']
);
}

public function test_settings_init__field_eventMeta() {
Expand All @@ -174,9 +183,12 @@ public function test_settings_init__field_eventMeta() {

$this->assertSame( array( $this->settings->fields[3], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'dimension event_meta_dimension',
), $field['args'] );
$this->assertSame(
array(
'class' => 'dimension event_meta_dimension',
),
$field['args']
);
}

public function test_settings_init__field_eventDebug() {
Expand All @@ -197,9 +209,12 @@ public function test_settings_init__field_eventDebug() {

$this->assertSame( array( $this->settings->fields[4], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'dimension event_debug_dimension',
), $field['args'] );
$this->assertSame(
array(
'class' => 'dimension event_debug_dimension',
),
$field['args']
);
}

public function test_settings_init__field_web_vitals_tracking_ratio() {
Expand All @@ -220,9 +235,12 @@ public function test_settings_init__field_web_vitals_tracking_ratio() {

$this->assertSame( array( $this->settings->fields[5], 'render' ), $field['callback'] );

$this->assertSame( array(
'class' => 'web_vitals_tracking_ratio',
), $field['args'] );
$this->assertSame(
array(
'class' => 'web_vitals_tracking_ratio',
),
$field['args']
);
}

public function test_settings_section__callback() {
Expand Down Expand Up @@ -797,7 +815,7 @@ public function test_render_settings_page() {
$result = ob_get_contents();
ob_end_clean();

// Confirm the form renders, without checking for an exact match
// Confirm the form renders, without checking for an exact match.

// replace nonce with a constant
$result = preg_replace(
Expand Down

0 comments on commit 74ac68c

Please sign in to comment.