Skip to content

Commit

Permalink
spelling fixes for the tests directory (#19879)
Browse files Browse the repository at this point in the history
  • Loading branch information
browner12 authored and taylorotwell committed Jul 3, 2017
1 parent 74f5780 commit ecbacfa
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/Auth/AuthenticateMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testMultipleDriversUnauthenticatedThrowsWithGuards()
return $this->fail();
}

public function testMultipleDriversAuthenticatedUdatesDefault()
public function testMultipleDriversAuthenticatedUpdatesDefault()
{
$this->registerAuthDriver('default', false);

Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function testBeganTransactionFiresEventsIfSet()
$connection->beginTransaction();
}

public function testCommitedFiresEventsIfSet()
public function testCommittedFiresEventsIfSet()
{
$pdo = $this->createMock('Illuminate\Tests\Database\DatabaseConnectionTestMockPDO');
$connection = $this->getMockConnection(['getName'], $pdo);
Expand Down
4 changes: 2 additions & 2 deletions tests/Database/DatabaseConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ public function testPostgresSearchPathArraySupported()
public function testPostgresApplicationNameIsSet()
{
$dsn = 'pgsql:host=foo;dbname=bar';
$config = ['host' => 'foo', 'database' => 'bar', 'charset' => 'utf8', 'application_name' => 'Larvel App'];
$config = ['host' => 'foo', 'database' => 'bar', 'charset' => 'utf8', 'application_name' => 'Laravel App'];
$connector = $this->getMockBuilder('Illuminate\Database\Connectors\PostgresConnector')->setMethods(['createConnection', 'getOptions'])->getMock();
$connection = m::mock('stdClass');
$connector->expects($this->once())->method('getOptions')->with($this->equalTo($config))->will($this->returnValue(['options']));
$connector->expects($this->once())->method('createConnection')->with($this->equalTo($dsn), $this->equalTo($config), $this->equalTo(['options']))->will($this->returnValue($connection));
$connection->shouldReceive('prepare')->once()->with('set names \'utf8\'')->andReturn($connection);
$connection->shouldReceive('prepare')->once()->with('set application_name to \'Larvel App\'')->andReturn($connection);
$connection->shouldReceive('prepare')->once()->with('set application_name to \'Laravel App\'')->andReturn($connection);
$connection->shouldReceive('execute')->twice();
$result = $connector->connect($config);

Expand Down
8 changes: 4 additions & 4 deletions tests/Database/DatabaseEloquentBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public function testWithCountAndGlobalScope()
$this->assertEquals('select "id", (select count(*) from "eloquent_builder_test_model_close_related_stubs" where "eloquent_builder_test_model_parent_stubs"."foo_id" = "eloquent_builder_test_model_close_related_stubs"."id") as "foo_count" from "eloquent_builder_test_model_parent_stubs"', $builder->toSql());
}

public function testWithCountAndContraintsAndHaving()
public function testWithCountAndConstraintsAndHaving()
{
$model = new EloquentBuilderTestModelParentStub;

Expand Down Expand Up @@ -696,7 +696,7 @@ public function testWithCountMultipleAndPartialRename()
$this->assertEquals('select "eloquent_builder_test_model_parent_stubs".*, (select count(*) from "eloquent_builder_test_model_close_related_stubs" where "eloquent_builder_test_model_parent_stubs"."foo_id" = "eloquent_builder_test_model_close_related_stubs"."id") as "foo_bar_count", (select count(*) from "eloquent_builder_test_model_close_related_stubs" where "eloquent_builder_test_model_parent_stubs"."foo_id" = "eloquent_builder_test_model_close_related_stubs"."id") as "foo_count" from "eloquent_builder_test_model_parent_stubs"', $builder->toSql());
}

public function testHasWithContraintsAndHavingInSubquery()
public function testHasWithConstraintsAndHavingInSubquery()
{
$model = new EloquentBuilderTestModelParentStub;

Expand All @@ -709,7 +709,7 @@ public function testHasWithContraintsAndHavingInSubquery()
$this->assertEquals(['baz', 'qux', 'quuux'], $builder->getBindings());
}

public function testHasWithContraintsWithOrWhereAndHavingInSubquery()
public function testHasWithConstraintsWithOrWhereAndHavingInSubquery()
{
$model = new EloquentBuilderTestModelParentStub;

Expand Down Expand Up @@ -739,7 +739,7 @@ public function testHasWithContraintsAndJoinAndHavingInSubquery()
$this->assertEquals(['baz', 'quuuuuux', 'qux', 'quuux'], $builder->getBindings());
}

public function testHasWithContraintsAndHavingInSubqueryWithCount()
public function testHasWithConstraintsAndHavingInSubqueryWithCount()
{
$model = new EloquentBuilderTestModelParentStub;

Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testContainsIndicatesIfModelInArray()
$this->assertFalse($c->contains($mockModel3));
}

public function testContainsIndicatesIfDiffentModelInArray()
public function testContainsIndicatesIfDifferentModelInArray()
{
$mockModelFoo = m::namedMock('Foo', 'Illuminate\Database\Eloquent\Model');
$mockModelFoo->shouldReceive('is')->with($mockModelFoo)->andReturn(true);
Expand Down
12 changes: 6 additions & 6 deletions tests/Filesystem/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ public function testSetChmod()
file_put_contents($this->tempDir.'/file.txt', 'Hello World');
$files = new Filesystem();
$files->chmod($this->tempDir.'/file.txt', 0755);
$filePermisson = substr(sprintf('%o', fileperms($this->tempDir.'/file.txt')), -4);
$this->assertEquals('0755', $filePermisson);
$filePermission = substr(sprintf('%o', fileperms($this->tempDir.'/file.txt')), -4);
$this->assertEquals('0755', $filePermission);
}

public function testGetChmod()
{
file_put_contents($this->tempDir.'/file.txt', 'Hello World');
chmod($this->tempDir.'/file.txt', 0755);
$files = new Filesystem();
$filePermisson = $files->chmod($this->tempDir.'/file.txt');
$this->assertEquals('0755', $filePermisson);
$filePermission = $files->chmod($this->tempDir.'/file.txt');
$this->assertEquals('0755', $filePermission);
}

public function testDeleteRemovesFiles()
Expand Down Expand Up @@ -254,14 +254,14 @@ public function testDirnameReturnsDirectory()
$this->assertEquals($this->tempDir, $files->dirname($this->tempDir.'/foo.txt'));
}

public function testTypeIndentifiesFile()
public function testTypeIdentifiesFile()
{
file_put_contents($this->tempDir.'/foo.txt', 'foo');
$files = new Filesystem();
$this->assertEquals('file', $files->type($this->tempDir.'/foo.txt'));
}

public function testTypeIndentifiesDirectory()
public function testTypeIdentifiesDirectory()
{
mkdir($this->tempDir.'/foo');
$files = new Filesystem();
Expand Down
2 changes: 1 addition & 1 deletion tests/View/Blade/BladeLangTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function tearDown()
m::close();
}

public function testStatementThatContainsNonConsecutiveParanthesisAreCompiled()
public function testStatementThatContainsNonConsecutiveParenthesisAreCompiled()
{
$compiler = new BladeCompiler($this->getFiles(), __DIR__);
$string = "Foo @lang(function_call('foo(blah)')) bar";
Expand Down

0 comments on commit ecbacfa

Please sign in to comment.