Skip to content

Commit a8cb860

Browse files
committed
Remove dead test
1 parent bb84bef commit a8cb860

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/phpunit/block/BlockTypeIdsTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,9 @@
2626
use PHPUnit\Framework\TestCase;
2727
use pocketmine\utils\Utils;
2828
use function array_unique;
29-
use function max;
3029

3130
class BlockTypeIdsTest extends TestCase{
3231

33-
public function testFirstUnused() : void{
34-
$reflect = new \ReflectionClass(BlockTypeIds::class);
35-
36-
$constants = $reflect->getConstants();
37-
unset($constants['FIRST_UNUSED_BLOCK_ID']);
38-
self::assertNotEmpty($constants, "We should never have zero type IDs");
39-
40-
$max = max($constants);
41-
self::assertIsInt($max, "Max type ID should always be an integer");
42-
43-
self::assertSame($reflect->getConstant('FIRST_UNUSED_BLOCK_ID'), $max + 1, "FIRST_UNUSED_BLOCK_ID must be one higher than the highest fixed type ID");
44-
}
45-
4632
public function testNoDuplicates() : void{
4733
$idTable = (new \ReflectionClass(BlockTypeIds::class))->getConstants();
4834

0 commit comments

Comments
 (0)