public function testGetByTag() { $tag = Tagging::get('Some Title'); $tag->tag('Aay'); $pager = Tagging::tagged('Aay', 'en'); $tagged = $pager->execute(1, 10); $this->assertEquals(2, count($tagged)); $this->assertEquals('Some Other Title', $tagged[0]->title); $this->assertEquals('Some Title', $tagged[1]->title); }