Skip to content

Commit

Permalink
Replace assertSame functions with methods
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Jul 26, 2024
1 parent e7f8017 commit bdc0cb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/Caching/IgnoreCacheHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testExtractHandles(): void
$extractHandlesMethod = $ignoreCacheHandlerReflection->getMethod('extractHandles');
$extractHandlesMethod->setAccessible(true);

assertSame(
static::assertSame(
[
Script::class => [
'example-1', 'example-2',
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/Caching/IgnoreSitegroundCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testApplyExcludedHandlers(): void
$applyExcludedHandlesMethod = $ignoreSitegroundCacheReflection->getMethod('applyExcludedHandles');
$applyExcludedHandlesMethod->setAccessible(true);

assertSame(
static::assertSame(
['excluded-1', 'excluded-2', 'to-exclude-1', 'to-exclude-2'],
$applyExcludedHandlesMethod->invoke(new IgnoreSitegroundCache(), $excluded, $toExclude)
);
Expand Down
8 changes: 4 additions & 4 deletions tests/phpunit/Unit/Caching/IgnoreW3TotalCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ public function testDetermineMinification(): void
$determineMinificationMethod = $ignoreW3TotalCacheReflection->getMethod('determineMinification');
$determineMinificationMethod->setAccessible(true);

assertSame(
static::assertSame(
false,
$determineMinificationMethod->invoke(new IgnoreW3TotalCache(), true, $scriptTag, ['assets-plugin-script'])
);
assertSame(
static::assertSame(
true,
$determineMinificationMethod->invoke(new IgnoreW3TotalCache(), true, $scriptTag, ['assets-plugin-script-example'])
);
assertSame(
static::assertSame(
true,
$determineMinificationMethod->invoke(new IgnoreW3TotalCache(), true, $scriptTag, [])
);
assertSame(
static::assertSame(
false,
$determineMinificationMethod->invoke(new IgnoreW3TotalCache(), false, $scriptTag, [])
);
Expand Down

0 comments on commit bdc0cb7

Please sign in to comment.