Skip to content

Commit

Permalink
Change method visibility and update CS.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 16, 2016
1 parent 053c384 commit ca41540
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ public function tearDown()
* Define hooks to migrate the database before and after each test.
*
* @param string $realpah
*
* @return void
*/
public function loadMigrationsFrom($realpath)
protected function loadMigrationsFrom($realpath)
{
$this->artisan('migrate', [
'--realpath' => $realpath,
Expand Down
2 changes: 1 addition & 1 deletion tests/BehatFeatureContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class BehatFeatureContextTest extends \PHPUnit_Framework_TestCase
public function testCreateApplicationMethod()
{
$stub = new StubFeatureContext([]);
$app = $stub->createApplication();
$app = $stub->createApplication();

$this->assertInstanceOf('\Orchestra\Testbench\TestCaseInterface', $stub);
$this->assertInstanceOf('\Illuminate\Foundation\Application', $app);
Expand Down
3 changes: 1 addition & 2 deletions tests/DatabaseLoadMigrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

class DatabaseLoadMigrationsTest extends \Orchestra\Testbench\TestCase
{

/**
* Setup the test environment.
*/
Expand Down Expand Up @@ -86,7 +85,7 @@ public function testRunningMigration()

$this->assertEquals('hello@orchestraplatform.com', $users->email);
$this->assertTrue(\Hash::check('123', $users->password));

$this->beforeApplicationDestroyed(function () {
$this->assertSame(\Schema::hasTable('users'), false);
});
Expand Down
3 changes: 1 addition & 2 deletions tests/Integrations/AggregateServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function testServiceIsAvailable()
}
}


class ParentService extends AggregateServiceProvider
{
protected $providers = [
Expand Down Expand Up @@ -69,4 +68,4 @@ public function register()
{
$this->app['child.deferred.loaded'] = true;
}
}
}
1 change: 0 additions & 1 deletion tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function testGetRoutes()
$crawler = $this->call('GET', 'goodbye');

$this->assertEquals('goodbye world', $crawler->getContent());

}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestCaseTest extends \PHPUnit_Framework_TestCase
public function testCreateApplicationMethod()
{
$stub = new StubTestCase();
$app = $stub->createApplication();
$app = $stub->createApplication();

$this->assertInstanceOf('\Orchestra\Testbench\TestCaseInterface', $stub);
$this->assertInstanceOf('\Illuminate\Foundation\Application', $app);
Expand Down

0 comments on commit ca41540

Please sign in to comment.