Exemplo n.º 1
0
 public function testOpenidDbStoreRemoveAssociationNonexistent()
 {
     $store = new ezcAuthenticationOpenidDbStore($this->db);
     $association = ezcAuthenticationOpenidAssociation::__set_state(self::$associationArray);
     $url = self::$urlServer;
     // for DbStore, removeAssociation() returns always true, but for FileStore it could be false
     $this->assertEquals(true, $store->removeAssociation($url));
     $this->assertEquals(false, $store->getAssociation($url));
 }
 public function testOpenidFileStoreRemoveAssociationNonexistent()
 {
     $path = $this->path;
     $store = new ezcAuthenticationOpenidFileStore($path);
     $association = ezcAuthenticationOpenidAssociation::__set_state(self::$association);
     $url = self::$url;
     $this->assertEquals(false, $store->removeAssociation($url));
     $this->assertEquals(false, $store->getAssociation($url));
 }