Domain\Classroom\ClassroomRepositoryTest::test_delete PHP Method

test_delete() public method

public test_delete ( )
    public function test_delete()
    {
        $repo = App::make(ClassroomRepository::class);
        $classroom = factory(Classroom::class)->create();
        $delete = $repo->delete($classroom->id);
        $this->assertEquals(1, $delete);
        $this->setExpectedException(RepositoryException::class);
        $repo->withoutTrashed()->get($classroom->id);
    }