CRUDlexTests\ServiceProviderTest::testInvalidInit PHP Method

testInvalidInit() public method

public testInvalidInit ( )
    public function testInvalidInit()
    {
        $app = new Application();
        $crudServiceProvider = new ServiceProvider();
        try {
            $crudServiceProvider->init($this->dataFactory, 'foo', $this->fileProcessorMock, true, $app);
            $this->fail('Expected exception');
        } catch (\Exception $e) {
            // Wanted.
        }
    }