19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
31 $this->expectException(NoSuchMenuTypeException::class);
32 $this->expectExceptionCode(1363278130);
43 $this->assertInternalType(
'object', $factory->getMenuObjectByType(
'TMENU'));
52 $this->assertInternalType(
'object', $factory->getMenuObjectByType(
'tmenu'));
61 $selfClassName = static::class;
63 $this->assertInstanceOf($selfClassName, $factory->getMenuObjectByType(
'TMENU'));
72 $selfClassName = static::class;
73 $uniqueMenuType = $this->getUniqueId(
'foo_');
74 $factory->registerMenuType($uniqueMenuType, $selfClassName);
75 $this->assertInstanceOf($selfClassName, $factory->getMenuObjectByType($uniqueMenuType));
83 $this->expectException(\InvalidArgumentException::class);
84 $this->expectExceptionCode(1363429303);
94 $this->expectException(\InvalidArgumentException::class);
95 $this->expectExceptionCode(1363429303);