Skip to content

Commit

Permalink
add exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Apr 20, 2020
1 parent 5873458 commit 7bc9596
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/core/web/JsonLdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use luya\web\jsonld\PriceValue;
use luya\web\jsonld\Review;
use luya\web\jsonld\RangeValue;
use yii\base\InvalidConfigException;

class JsonLdTest extends ConsoleApplicationTestCase
{
Expand Down Expand Up @@ -415,6 +416,12 @@ public function testRestaurantWithPlaceGeoCordinates()
], $r->toArray());
}

public function testInvalidCurrencyValue()
{
$this->expectException(InvalidConfigException::class);
new CurrencyValue('CH');
}

public function testOffers()
{
$o = (new Offer())
Expand Down

0 comments on commit 7bc9596

Please sign in to comment.