Skip to content

Commit 041e858

Browse files
authored
Adds tests (#29)
1 parent 4de0120 commit 041e858

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

tests/Unit/Domain/Value/SpaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
namespace Storyblok\Api\Tests\Unit\Domain\Value;
1515

16-
use Ergebnis\DataProvider\StringProvider;
1716
use Ergebnis\DataProvider\IntProvider;
1817
use Ergebnis\DataProvider\NullProvider;
18+
use Ergebnis\DataProvider\StringProvider;
1919
use PHPUnit\Framework\Attributes\DataProviderExternal;
2020
use PHPUnit\Framework\Attributes\Test;
2121
use PHPUnit\Framework\TestCase;

tests/Unit/Resolver/LinkLevelTest.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Storyblok-Api.
7+
*
8+
* (c) SensioLabs Deutschland <[email protected]>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace Storyblok\Api\Tests\Unit\Resolver;
15+
16+
use OskarStark\Enum\Test\EnumTestCase;
17+
use Storyblok\Api\Domain\Value\Resolver\LinkLevel;
18+
19+
final class LinkLevelTest extends EnumTestCase
20+
{
21+
protected static function getClass(): string
22+
{
23+
return LinkLevel::class;
24+
}
25+
26+
protected static function getNumberOfValues(): int
27+
{
28+
return 2;
29+
}
30+
}

tests/Unit/Resolver/LinkTypeTest.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of Storyblok-Api.
7+
*
8+
* (c) SensioLabs Deutschland <[email protected]>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace Storyblok\Api\Tests\Unit\Resolver;
15+
16+
use OskarStark\Enum\Test\EnumTestCase;
17+
use Storyblok\Api\Domain\Value\Resolver\LinkType;
18+
19+
final class LinkTypeTest extends EnumTestCase
20+
{
21+
protected static function getClass(): string
22+
{
23+
return LinkType::class;
24+
}
25+
26+
protected static function getNumberOfValues(): int
27+
{
28+
return 3;
29+
}
30+
}

0 commit comments

Comments
 (0)