Ojs\JournalBundle\Tests\Controller\SectionControllerTest::testDelete PHP Метод

testDelete() публичный Метод

public testDelete ( )
    public function testDelete()
    {
        $id = $this->sampleObjectLoader->loadSection();
        $this->logIn();
        $client = $this->client;
        $token = $this->generateToken('ojs_journal_section' . $id);
        $client->request('DELETE', '/journal/1/section/' . $id . '/delete', array('_token' => $token));
        $this->assertStatusCode(302, $client);
    }