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

testInsertContentObject() public method

    public function testInsertContentObject()
    {
        $struct = $this->getCreateStructFixture();
        $gateway = $this->getDatabaseGateway();
        $gateway->insertContentObject($struct);
        $this->assertQueryResult(array(array('name' => 'Content name', 'contentclass_id' => '23', 'section_id' => '42', 'owner_id' => '13', 'current_version' => '1', 'initial_language_id' => '2', 'remote_id' => 'some_remote_id', 'language_mask' => '3', 'modified' => '0', 'published' => '0', 'status' => ContentInfo::STATUS_DRAFT)), $this->getDatabaseHandler()->createSelectQuery()->select(array('name', 'contentclass_id', 'section_id', 'owner_id', 'current_version', 'initial_language_id', 'remote_id', 'language_mask', 'modified', 'published', 'status'))->from('ezcontentobject'));
    }
DoctrineDatabaseTest