Move block permutation generation into Block

this allows sealing off a whole bunch of internal APIs.
This commit is contained in:
Dylan K. Taylor
2023-04-21 20:38:28 +01:00
parent 6c0ad9589b
commit d4ca566fd0
3 changed files with 34 additions and 47 deletions

View File

@ -119,7 +119,7 @@ class BlockTest extends TestCase{
$states = $this->blockFactory->getAllKnownStates();
foreach($states as $stateId => $state){
self::assertArrayHasKey($stateId, $knownStates, "New block state $stateId (" . $state->getTypeId() . ":" . $state->computeTypeAndStateData() . ", " . print_r($state, true) . ") - consistency check may need regenerating");
self::assertArrayHasKey($stateId, $knownStates, "New block state $stateId (" . print_r($state, true) . ") - consistency check may need regenerating");
self::assertSame($knownStates[$stateId], $state->getName());
}
asort($knownStates, SORT_STRING);