Skip to content

Commit 1a6badd

Browse files
committed
Improving code coverage
1 parent a37c7de commit 1a6badd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Types/BasicUserTest.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace TheCodingMachine\Graphqlite\Bundle\Types;
4+
5+
use PHPUnit\Framework\TestCase;
6+
use RuntimeException;
7+
8+
class BasicUserTest extends TestCase
9+
{
10+
11+
public function testGetPassword()
12+
{
13+
$user = new BasicUser('foo');
14+
15+
$this->expectException(RuntimeException::class);
16+
$user->getPassword();
17+
}
18+
19+
public function testEraseCredentials()
20+
{
21+
$user = new BasicUser('foo');
22+
23+
$this->expectException(RuntimeException::class);
24+
$user->eraseCredentials();
25+
}
26+
27+
public function testGetSalt()
28+
{
29+
$user = new BasicUser('foo');
30+
31+
$this->expectException(RuntimeException::class);
32+
$user->getSalt();
33+
}
34+
}

0 commit comments

Comments
 (0)