public function testSimpleScope() { $frogs = Animal::all()->frogs(); $this->assertEquals(2, $frogs->count()); }