public function testEmailAlreadyRegWithModel() { $email = '*****@*****.**'; $model = new \Model_Client(); $model->loadBean(new \RedBeanPHP\OODBBean()); $model->email = $email; $clientService = new \Box\Mod\Client\Service(); $result = $clientService->emailAreadyRegistered($email, $model); $this->assertInternalType('bool', $result); $this->assertEquals(false, $result); }