Skip to content

Commit bf50638

Browse files
committed
IHF: Simplified.
1 parent 265bd47 commit bf50638

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/db/DbMysqlVariableTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?php
22

3-
use Mockery as m;
4-
53
class DbMysqlVariableTest extends TestCase
64
{
75
/** @test */
86
public function it_returns_false_for_unexisting_mysql_variable()
97
{
10-
$mock = m::mock('alias:Illuminate\Support\Facades\DB');
8+
$mock = Mockery::mock('alias:Illuminate\Support\Facades\DB');
119
$mock->shouldReceive('selectOne')
1210
->withArgs(['show variables where variable_name = ?', ['fake']])
1311
->once()
@@ -19,7 +17,7 @@ public function it_returns_false_for_unexisting_mysql_variable()
1917
/** @test */
2018
public function it_returns_value_for_existing_mysql_variable()
2119
{
22-
$mock = m::mock('alias:Illuminate\Support\Facades\DB');
20+
$mock = Mockery::mock('alias:Illuminate\Support\Facades\DB');
2321
$mock->shouldReceive('selectOne')
2422
->withArgs(['show variables where variable_name = ?', ['hostname']])
2523
->once()

0 commit comments

Comments
 (0)