eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\Gateway\DoctrineDatabaseTest::testDeleteTypeExisting PHP Method

testDeleteTypeExisting() public method

    public function testDeleteTypeExisting()
    {
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/existing_types.php');
        $gateway = $this->getGateway();
        $gateway->deleteType(1, 0);
        $countAffectedAttr = $this->getDatabaseHandler()->createSelectQuery();
        $countAffectedAttr->select('COUNT(*)')->from('ezcontentclass');
        $this->assertQueryResult(array(array(1)), $countAffectedAttr);
    }