Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Feb 10, 2019
1 parent 2b11dbe commit 40a8845
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions tests/Feature/WidgetManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ public function it_can_make_based_on_default_driver()
$this->assertInstanceOf('\Orchestra\Widget\Handlers\Placeholder', Widget::driver());
}

/**
* @rest
*/
/** @test */
public function it_can_set_default_driver()
{
$this->assertNotSame('foo', Widget::getDefaultDriver());
Expand All @@ -83,12 +81,11 @@ public function it_can_set_default_driver()
$this->assertSame('foo', Widget::getDefaultDriver());
}

/**
* @test
* @expectedException \InvalidArgumentException
*/
/** @test */
public function it_throws_exception_given_invalid_handler()
{
$this->expectException('InvalidArgumentException');

Widget::make('foobar');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Handlers/MenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MenuTest extends TestCase
/**
* Teardown the test environment.
*/
public function tearDown()
protected function tearDown(): void
{
m::close();
}
Expand Down

0 comments on commit 40a8845

Please sign in to comment.