public function testModelMethods() { $this->assertTrue(is_array(Robot::with('Parts'))); $this->assertTrue(is_object(Robot::findFirstById(1)->load('Parts'))); $this->assertTrue(is_object(Robot::findFirstWith('Parts', ['id = 1']))); }