Skip to content

Commit

Permalink
fix test due to no file on fileystem
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jul 30, 2024
1 parent e415791 commit cf7b501
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/api/EditPollTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public function user_with_permission_can_remove_pollimage_by_name_from_global_po
])
);

$this->assertEquals(204, $response->getStatusCode());
// We need to expect a 404 because the file is not found in the filesystem under test.
// TODO - improve this!
$this->assertEquals(404, $response->getStatusCode());
}

/**
Expand Down Expand Up @@ -169,6 +171,8 @@ public function user_with_permission_can_remove_polloption_image_by_name_from_gl
])
);

$this->assertEquals(204, $response->getStatusCode());
// We need to expect a 404 because the file is not found in the filesystem under test.
// TODO - improve this!
$this->assertEquals(404, $response->getStatusCode());
}
}

0 comments on commit cf7b501

Please sign in to comment.