mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
BlockTest: remove redundant name test
name is mandatory in the constructor now, so this isn't necessary anymore.
This commit is contained in:
parent
0f2f05fbb9
commit
707faef0f7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user