public function testSetContentState() { $gateway = $this->getDatabaseGateway(); $gateway->setContentState(42, 2, 2); $this->assertQueryResult(array(array('contentobject_id' => 42, 'contentobject_state_id' => 2)), $this->getDatabaseHandler()->createSelectQuery()->select('contentobject_id', 'contentobject_state_id')->from('ezcobj_state_link')->where('contentobject_id = 42')); }