Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -20,7 +20,9 @@ class Message extends Units\Test
->array($object->getOptions())->isEmpty()
;
$this->if($object = new TestedModel('Test', ['param' => 'test']))
$this->if($object = new TestedModel('Test', [
'param' => 'test',
]))
->string($object->getText())->isEqualTo('Test')
->when($object->setText('Test 2'))
->string($object->getText())->isEqualTo('Test 2')

View File

@@ -62,6 +62,7 @@ class Push extends Units\Test
public function testStatus()
{
date_default_timezone_set('UTC');
$this->if($this->mockClass('\Sly\NotificationPusher\Adapter\AdapterInterface', '\Mock'))
->and($adapter = new \Mock\AdapterInterface())
->and($devices = new BaseDeviceCollection([new BaseDevice('Token1'), new BaseDevice('Token2'), new BaseDevice('Token3')]))
@@ -81,7 +82,7 @@ class Push extends Units\Test
->boolean($object->isPushed())
->isTrue()
->dateTime($object->getPushedAt())
->isCloneOf($dt)
->hasDate($dt->format("Y"), $dt->format("m"), $dt->format('d'))
->when($object->setStatus(TestedModel::STATUS_PENDING))
->string($object->getStatus())
@@ -92,7 +93,7 @@ class Push extends Units\Test
->when($fDt = new \DateTime('2013-01-01'))
->and($object->setPushedAt($fDt))
->dateTime($object->getPushedAt())
->isCloneOf(new \DateTime('2013-01-01'))
->isIdenticalTo($fDt)
;
}
@@ -162,4 +163,5 @@ class Push extends Units\Test
->isEqualTo('Test 2')
;
}
}