GcDevelopment\Controller\DocumentTypeControllerTest::testAddTabActionWithDuplicatename PHP Méthode

testAddTabActionWithDuplicatename() public méthode

Test
    public function testAddTabActionWithDuplicatename()
    {
        $session = new SessionContainer();
        $session->offsetSet('document-type', array('tabs' => array(1 => array('name' => 'Tab'))));
        $this->dispatch('/admin/development/document-type/create-tab', 'POST', array('name' => 'Tab', 'description' => 'Description'));
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('DocumentTypeController');
        $this->assertControllerClass('DocumentTypeController');
        $this->assertMatchedRouteName('development/document-type/add-tab');
    }