added exception test to view tests.
This commit is contained in:
parent
f266a1c6ca
commit
794e0e6d17
|
@ -40,4 +40,12 @@ public function testGetMethodReturnsStringContentOfView()
|
||||||
$this->assertTrue(is_string(System\View::make('home/index')->get()));
|
$this->assertTrue(is_string(System\View::make('home/index')->get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException Exception
|
||||||
|
*/
|
||||||
|
public function testExceptionIsThrownWhenViewDoesntExist()
|
||||||
|
{
|
||||||
|
System\View::make('doesnt-exist')->get();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue