Adjust rename in tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-10 14:40:32 +01:00
parent f031717a54
commit a461699d42
4 changed files with 17 additions and 17 deletions

View File

@@ -115,7 +115,7 @@ class AssignmentServiceTest extends TestCase {
public function testAssignUser() {
$assignments = [];
$this->assignedUsersMapper->expects($this->once())
->method('find')
->method('findAll')
->with(123)
->willReturn($assignments);
$assignment = new Assignment();
@@ -145,7 +145,7 @@ class AssignmentServiceTest extends TestCase {
$this->expectExceptionMessage('The user is not part of the board');
$assignments = [];
$this->assignedUsersMapper->expects($this->once())
->method('find')
->method('findAll')
->with(123)
->willReturn($assignments);
$assignment = new Assignment();
@@ -176,7 +176,7 @@ class AssignmentServiceTest extends TestCase {
$assignment
];
$this->assignedUsersMapper->expects($this->once())
->method('find')
->method('findAll')
->with(123)
->willReturn($assignments);
$actual = $this->assignmentService->assignUser(123, 'admin');
@@ -192,7 +192,7 @@ class AssignmentServiceTest extends TestCase {
$assignment
];
$this->assignedUsersMapper->expects($this->once())
->method('find')
->method('findAll')
->with(123)
->willReturn($assignments);
$this->assignedUsersMapper->expects($this->once())
@@ -213,7 +213,7 @@ class AssignmentServiceTest extends TestCase {
$assignment
];
$this->assignedUsersMapper->expects($this->once())
->method('find')
->method('findAll')
->with(123)
->willReturn($assignments);
$this->expectException(NotFoundException::class);