File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Mockery as m ;
4
-
5
3
class DbIsMysqlTest extends TestCase
6
4
{
7
5
/** @test */
8
6
public function it_returns_true_if_laravel_database_default_connection_is_mysql ()
9
7
{
10
- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
8
+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
11
9
$ mock ->shouldReceive ('getDefaultConnection ' )->withNoArgs ()->once ()->andReturn ('mysql ' );
12
10
13
11
$ this ->assertTrue (db_is_mysql ());
@@ -16,7 +14,7 @@ public function it_returns_true_if_laravel_database_default_connection_is_mysql(
16
14
/** @test */
17
15
public function it_returns_false_if_laravel_database_default_connection_is_not_mysql ()
18
16
{
19
- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
17
+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
20
18
$ mock ->shouldReceive ('getDefaultConnection ' )->withNoArgs ()->once ()->andReturn ('sqlite ' );
21
19
22
20
$ this ->assertFalse (db_is_mysql ());
You can’t perform that action at this time.
0 commit comments