Issue #3417560 by longwave: Remove withConsecutive() in SqlContentEntityStorageSchemaTest
parent
eb2baa20ef
commit
74fac8eb32
|
@ -3345,11 +3345,6 @@ parameters:
|
||||||
count: 1
|
count: 1
|
||||||
path: tests/Drupal/Tests/Core/Entity/EntityUrlTest.php
|
path: tests/Drupal/Tests/Core/Entity/EntityUrlTest.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: """
|
message: """
|
||||||
#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
|
#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
|
||||||
|
|
|
@ -1536,12 +1536,12 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// The original indexes should be dropped before the new one is added.
|
// The original indexes should be dropped before the new one is added.
|
||||||
$this->dbSchemaHandler->expects($this->exactly(3))
|
$indexes = ['entity_test__b588603cb9', 'entity_test__removed_field', 'entity_test__b588603cb9'];
|
||||||
|
$this->dbSchemaHandler->expects($this->exactly(count($indexes)))
|
||||||
->method('dropIndex')
|
->method('dropIndex')
|
||||||
->withConsecutive(
|
->with('entity_test', $this->callback(function ($index) use (&$indexes) {
|
||||||
['entity_test', 'entity_test__b588603cb9'],
|
return array_shift($indexes) === $index;
|
||||||
['entity_test', 'entity_test__removed_field'],
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
$this->dbSchemaHandler->expects($this->atLeastOnce())
|
$this->dbSchemaHandler->expects($this->atLeastOnce())
|
||||||
->method('fieldExists')
|
->method('fieldExists')
|
||||||
|
|
Loading…
Reference in New Issue