public function test_is_assigned_agent() { $data = array('title' => 'A survey', 'agents' => array(1, 2, 3)); $survey = new Survey_entity($data); $this->assertTrue($survey->is_assigned_agent(2)); $this->assertFalse($survey->is_assigned_agent(4)); }