update webpatser/laravel-uuid to version 3
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
This commit is contained in:
12
tests/_support/Helper/ExtraAsserts.php
Normal file → Executable file
12
tests/_support/Helper/ExtraAsserts.php
Normal file → Executable file
@@ -4,9 +4,11 @@ namespace Helper;
|
||||
// here you can define custom actions
|
||||
// all public methods declared in helper class will be available in $I
|
||||
|
||||
use Codeception\Module;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use PHPUnit_Framework_Assert;
|
||||
|
||||
class ExtraAsserts extends \Codeception\Module
|
||||
class ExtraAsserts extends Module
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -16,21 +18,21 @@ class ExtraAsserts extends \Codeception\Module
|
||||
*/
|
||||
public function assertInstanceOf($expected, $actual, $message = '')
|
||||
{
|
||||
\PHPUnit_Framework_Assert::assertInstanceOf($expected, $actual, $message);
|
||||
PHPUnit_Framework_Assert::assertInstanceOf($expected, $actual, $message);
|
||||
}
|
||||
|
||||
public function assertCanSave(Model $model)
|
||||
{
|
||||
\PHPUnit_Framework_Assert::assertTrue($model->save(), json_encode($model->getMessages()));
|
||||
PHPUnit_Framework_Assert::assertTrue($model->save(), json_encode($model->getMessages()));
|
||||
}
|
||||
|
||||
public function assertCanNotSave(Model $model, $message = '')
|
||||
{
|
||||
\PHPUnit_Framework_Assert::assertNotTrue($model->save(), $message);
|
||||
PHPUnit_Framework_Assert::assertNotTrue($model->save(), $message);
|
||||
}
|
||||
|
||||
public function haveNotFinishedTest()
|
||||
{
|
||||
\PHPUnit_Framework_Assert::markTestIncomplete();
|
||||
PHPUnit_Framework_Assert::markTestIncomplete();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user