Eccube\Tests\Web\Admin\Setting\System\AuthorityControllerTest::testAuthoritySubmit PHP Method

testAuthoritySubmit() public method

testAuthoritySubmit
public testAuthoritySubmit ( )
    public function testAuthoritySubmit()
    {
        $this->deleteAllRows(array('dtb_authority_role'));
        $AuthorityRole = $this->newTestAuthorityRole();
        $form = $this->createFormData($AuthorityRole);
        $url = $this->app->url('admin_setting_system_authority');
        // makes the POST request
        $this->client->request('POST', $url, array('form' => array('AuthorityRoles' => $form, '_token' => 'dummy')));
        $redirectUrl = $this->app->url('admin_setting_system_authority');
        $this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
        $this->expected = $form[0]['deny_url'];
        $this->actual = $AuthorityRole->getDenyUrl();
        $this->verify();
    }