Skip to content

Commit

Permalink
MNT Remove polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 4, 2021
1 parent 3628e23 commit 7b5d6f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"silverstripe/vendor-plugin": "^1"
},
"require-dev": {
"sminnee/phpunit": "^5.7",
"silverstripe/recipe-testing": "^2",
"silverstripe/graphql": "^3.5 || ^4",
"squizlabs/php_codesniffer": "^3"
},
Expand Down
11 changes: 8 additions & 3 deletions tests/php/VersionedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

class VersionedTest extends SapphireTest
{

protected static $fixture_file = 'VersionedTest.yml';

public static $extra_dataobjects = [
Expand Down Expand Up @@ -662,7 +661,10 @@ public function testGetVersion()
'Versioned.stage' => Versioned::DRAFT,
];
$this->assertEquals($archiveParms, $page2v1->getInheritableQueryParams());
$this->assertArraySubset($archiveParms, $page2v1->Children()->getQueryParams());
$queryParms = $page2v1->Children()->getQueryParams();
foreach ($archiveParms as $key => $val) {
$this->assertSame($val, $queryParms[$key], "queryParms[$key] should be $val");
}
$this->assertListEquals(
[
['Title' => 'Page 2a'],
Expand All @@ -684,7 +686,10 @@ public function testGetVersion()
'Versioned.stage' => Versioned::DRAFT,
];
$this->assertEquals($archiveParms, $page2v2->getInheritableQueryParams());
$this->assertArraySubset($archiveParms, $page2v2->Children()->getQueryParams());
$queryParms = $page2v1->Children()->getQueryParams();
foreach ($archiveParms as $key => $val) {
$this->assertSame($val, $queryParms[$key], "queryParms[$key] should be $val");
}
$this->assertListEquals(
[
['Title' => 'Page 2a - v2'],
Expand Down

0 comments on commit 7b5d6f6

Please sign in to comment.