public function testDeleteHashtagByID() { $this->debug("Begin testDeleteHashtagByHashtagId"); $res = $this->dao->getHashtagByID(1); $this->assertIsA($res, 'Hashtag'); $res = $this->dao->deleteHashtagByID(1); $this->assertTrue($res); $res = $this->dao->getHashtagByID(1); $this->assertNull($res); $res = $this->dao->getHashtagByID(2); $this->assertIsA($res, 'Hashtag'); $res = $this->dao->deleteHashtagByID(2); $this->assertTrue($res); $res = $this->dao->getHashtagByID(2); $this->assertNull($res); $res = $this->dao->deleteHashtagByID(256); $this->assertFalse($res); $this->debug("End testDeleteHashtagByHashtagId"); }