Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e91ab6f

Browse files
committed
Merge pull request laravel#5973 from GrahamCampbell/4.2-test-assertions
[4.2] Converted 2 Assertions To Use Native PHPUnit Assertions
2 parents 013457c + 3535b87 commit e91ab6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Config/ConfigRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testHasOnTrueReturnsTrue()
2525
$config->getLoader()->shouldReceive('load')->once()->with('production', 'app', null)->andReturn($options);
2626

2727
$this->assertTrue($config->has('app.bing'));
28-
$this->assertEquals(true,$config->get('app.bing'));
28+
$this->assertTrue($config->get('app.bing'));
2929
}
3030

3131

tests/Database/DatabaseEloquentModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ public function testTimestampsAreNotUpdatedWithTimestampsFalseSaveOption()
950950
$model->name = 'taylor';
951951
$model->exists = true;
952952
$this->assertTrue($model->save(['timestamps' => false]));
953-
$this->assertEquals(null, $model->updated_at);
953+
$this->assertNull($model->updated_at);
954954
}
955955

956956

0 commit comments

Comments
 (0)