public function testGetPrivateAPIKey() { $builders_array = array(); // build our data $builders_array[] = FixtureBuilder::build('owners', array('full_name' => 'ThinkUp J. User', 'email' => '*****@*****.**', 'is_activated' => 0, 'is_admin' => 0, 'api_key_private' => '')); $builders_array[] = FixtureBuilder::build('owners', array('full_name' => 'ThinkUp J. User', 'email' => '*****@*****.**', 'is_activated' => 1, 'is_admin' => 1, 'api_key_private' => 'aabbccdd')); // init our dao $dao = new OwnerMySQLDAO(); $result = $dao->getPrivateAPIKey('*****@*****.**'); $this->assertFalse($result); $result = $dao->getPrivateAPIKey('*****@*****.**'); $this->assertEqual($result, 'aabbccdd'); }