mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-01 01:48:40 +00:00
fix tests
This commit is contained in:
parent
09b057a1d3
commit
e7b02991ef
|
|
@ -195,7 +195,7 @@ class NewsArticleTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testInvalidStatus() : void
|
||||
{
|
||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
|
||||
$news = new NewsArticle();
|
||||
$news->setStatus(9999);
|
||||
|
|
@ -208,7 +208,7 @@ class NewsArticleTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testInvalidType() : void
|
||||
{
|
||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
|
||||
$news = new NewsArticle();
|
||||
$news->setType(9999);
|
||||
|
|
@ -221,7 +221,7 @@ class NewsArticleTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testInvalidLanguage() : void
|
||||
{
|
||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
|
||||
$news = new NewsArticle();
|
||||
$news->setLanguage('9999');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user