public function testset_accept_status() { $call = new Call(); $call->id = 1; //test for calls Users and delete the created linked records afterwards $user = new User(); $user->id = '1'; $call->set_accept_status($user, 'test'); $call_users = $call->get_linked_beans('users', $call->object_name); $this->assertEquals(1, count($call_users)); $call->delete_linked($call->id); }