Skip to content

Commit

Permalink
Fixes 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 12, 2019
1 parent 4b8a1ed commit 38a8159
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</filter>

<php>
<env name="DB_CONNECTION" value="testing"/>
<env name="MEMORY_DRIVER" value="fluent.default"/>
<server name="DB_CONNECTION" value="testing"/>
<server name="MEMORY_DRIVER" value="fluent.default"/>
</php>
</phpunit>
7 changes: 3 additions & 4 deletions tests/Feature/MemoryManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,11 @@ public function finish(array $items = []): bool
$this->assertSame('mock', $handler->getName());
}

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

$this->withoutExceptionHandling();

Memory::make('orm');
Expand Down

0 comments on commit 38a8159

Please sign in to comment.