BlockTest: remove redundant name test

name is mandatory in the constructor now, so this isn't necessary anymore.
This commit is contained in:
Dylan K. Taylor 2019-02-22 18:54:21 +00:00
parent 0f2f05fbb9
commit 707faef0f7

View File

@ -127,16 +127,6 @@ class BlockTest extends TestCase{
}
}
/**
* Test that all blocks have correctly set names
*/
public function testBlockNames() : void{
for($id = 0; $id < 256; ++$id){
$b = BlockFactory::get($id);
self::assertTrue($b instanceof UnknownBlock or $b->getName() !== "Unknown", "Block with ID $id does not have a valid name");
}
}
/**
* Test that light filters in the static arrays have valid values. Wrong values can cause lots of unpleasant bugs
* (like freezes) when doing light population.