partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit c409619f39cbcc95d73e6a383955ca526c8455ea
parent 4ef98fe1a9004bec65ec1c5af17727448b6ac7bf
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat, 26 Sep 2015 19:33:20 +0200

Return the acknowledged system notice, reworked unit test to reflect that change

Diffstat:
Msrc/PartKeepr/CoreBundle/Action/SystemNoticeAcknowledgeAction.php | 2++
Msrc/PartKeepr/CoreBundle/Tests/SystemNoticeTest.php | 5-----
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/PartKeepr/CoreBundle/Action/SystemNoticeAcknowledgeAction.php b/src/PartKeepr/CoreBundle/Action/SystemNoticeAcknowledgeAction.php @@ -53,5 +53,7 @@ class SystemNoticeAcknowledgeAction $systemNotice->setAcknowledged(); $this->entityManager->flush(); + + return $systemNotice; } } diff --git a/src/PartKeepr/CoreBundle/Tests/SystemNoticeTest.php b/src/PartKeepr/CoreBundle/Tests/SystemNoticeTest.php @@ -44,11 +44,6 @@ class SystemNoticeTest extends WebTestCase $ackIri ); - $client->request( - 'GET', - $iri - ); - $response = json_decode($client->getResponse()->getContent()); $this->assertEquals(true, $response->acknowledged); }