Domain\Classroom\ClassroomRepositoryTest::test_get PHP Method

test_get() public method

public test_get ( )
    public function test_get()
    {
        $repo = App::make(ClassroomRepository::class);
        $classroom = factory(Classroom::class)->create();
        $get = $repo->get($classroom->id);
        $this->assertInstanceOf(Classroom::class, $get);
        $this->assertEquals($get->id, $classroom->id);
    }