get_session()->authenticate($auth); self::$object = Feed_Adapter::create($appbox, self::$user, self::$title, self::$subtitle); self::$object->set_public(true); } public static function tearDownAfterClass() { self::$object->delete(); } public function testLoad_all() { $appbox = appbox::get_instance(); $coll = Feed_Collection::load_all($appbox, self::$user); foreach ($coll->get_feeds() as $feed) { $this->assertInstanceOf('Feed_Adapter', $feed); } } public function testGet_feeds() { $appbox = appbox::get_instance(); $coll = Feed_Collection::load_public_feeds($appbox); foreach ($coll->get_feeds() as $feed) { $this->assertInstanceOf('Feed_Adapter', $feed); } } public function testGet_aggregate() { $appbox = appbox::get_instance(); $coll = Feed_Collection::load_public_feeds($appbox); $this->assertInstanceOf('Feed_Aggregate', $coll->get_aggregate()); } public function testLoad_public_feeds() { $appbox = appbox::get_instance(); $coll = Feed_Collection::load_public_feeds($appbox); foreach ($coll->get_feeds() as $feed) { $this->assertTrue($feed->is_public()); } } }