Skip to content

Commit

Permalink
use handy fixture from BC
Browse files Browse the repository at this point in the history
  • Loading branch information
wiese committed Feb 13, 2018
1 parent 1026ecf commit 8835983
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -4,7 +4,6 @@

namespace WMDE\Fundraising\Frontend\Tests\EdgeToEdge\Routes;

use DateTime;
use Doctrine\ORM\ORMException;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\BrowserKit\Cookie;
Expand All @@ -16,7 +15,6 @@
use WMDE\Fundraising\MembershipContext\Tests\Data\ValidMembershipApplication;
use WMDE\Fundraising\MembershipContext\Tests\Fixtures\FixedMembershipTokenGenerator;
use WMDE\Fundraising\Frontend\Tests\EdgeToEdge\WebRouteTestCase;
use WMDE\Fundraising\Entities\MembershipApplication as DoctrineApplication;

/**
* @licence GNU GPL v2+
Expand Down Expand Up @@ -87,9 +85,7 @@ public function testCallOnAnonymizedRecord_deniedPageIsShown(): void {
self::CORRECT_ACCESS_TOKEN
) );

// @todo Get anonymized membership application from (context's) test data
$doctrineApplication = new DoctrineApplication();
$doctrineApplication->setBackup( new DateTime( '-1 day' ) );
$doctrineApplication = ValidMembershipApplication::newAnonymizedDoctrineEntity();

$factory->getEntityManager()->persist( $doctrineApplication );
$factory->getEntityManager()->flush();
Expand Down

0 comments on commit 8835983

Please sign in to comment.