We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40df15e commit 265bd47Copy full SHA for 265bd47
tests/db/DbMysqlNowTest.php
@@ -1,13 +1,11 @@
1
<?php
2
3
-use Mockery as m;
4
-
5
class DbMysqlNowTest extends TestCase
6
{
7
/** @test */
8
public function it_returns_valid_mysql_datetime()
9
10
- $mock = m::mock('alias:Illuminate\Support\Facades\DB');
+ $mock = Mockery::mock('alias:Illuminate\Support\Facades\DB');
11
$mock->shouldReceive('selectOne')->withArgs(['select now() as now'])->once()->andReturnUsing(function () {
12
return (object) ['now' => '2016-09-17 18:49:46'];
13
});
0 commit comments