Revert "[BUGFIX] Replace the table definition manipulation by signals"
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Category / CategoryRegistryTest.php
index 371af39..e4017d7 100644 (file)
@@ -77,6 +77,13 @@ class CategoryRegistryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->assertTrue($this->fixture->add('test_extension_a', $this->tables['first'], 'categories'));
        }
 
+       /**
+        * @test
+        */
+       public function doesAddReturnFalseOnUndefinedTable() {
+               $this->assertFalse($this->fixture->add('test_extension_a', 'undefined_table', 'categories'));
+       }
+
        /**
         * @test
         * @expectedException \InvalidArgumentException