Skip to content

Commit

Permalink
Merge pull request #196 from stefandoorn/1.4-rename-test
Browse files Browse the repository at this point in the history
Backport - Rename product to page in 1.4
  • Loading branch information
patrick477 authored Aug 24, 2018
2 parents 8dad701 + 88da802 commit 6f9b4f0
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions tests/Api/Sitemap/Provider/SitemapPageControllerApiLocalesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,51 +25,51 @@ public function setUpDatabase(): void
{
parent::setUpDatabase();

$product = new Page();
$product->setCurrentLocale('en_US');
$product->setName('Test');
$product->setCode('test-code');
$product->setSlug('test');
$product->setCurrentLocale('nl_NL');
$product->setName('Test');
$product->setCode('test-code');
$product->setSlug('test-nl');
$this->getEntityManager()->persist($product);
$page = new Page();
$page->setCurrentLocale('en_US');
$page->setName('Test');
$page->setCode('test-code');
$page->setSlug('test');
$page->setCurrentLocale('nl_NL');
$page->setName('Test');
$page->setCode('test-code');
$page->setSlug('test-nl');
$this->getEntityManager()->persist($page);

$product = new Page();
$product->setCurrentLocale('en_US');
$product->setName('Mock');
$product->setCode('mock-code');
$product->setSlug('mock');
$product->setCurrentLocale('nl_NL');
$product->setName('Mock');
$product->setCode('mock-code');
$product->setSlug('mock-nl');
$this->getEntityManager()->persist($product);
$page = new Page();
$page->setCurrentLocale('en_US');
$page->setName('Mock');
$page->setCode('mock-code');
$page->setSlug('mock');
$page->setCurrentLocale('nl_NL');
$page->setName('Mock');
$page->setCode('mock-code');
$page->setSlug('mock-nl');
$this->getEntityManager()->persist($page);

$product = new Page();
$product->setCurrentLocale('en_US');
$product->setName('Test 2');
$product->setCode('test-code-3');
$product->setSlug('test 2');
$product->setCurrentLocale('nl_NL');
$product->setName('Test 2');
$product->setCode('test-code-3');
$product->setSlug('test 2');
$product->setEnabled(false);
$this->getEntityManager()->persist($product);
$page = new Page();
$page->setCurrentLocale('en_US');
$page->setName('Test 2');
$page->setCode('test-code-3');
$page->setSlug('test 2');
$page->setCurrentLocale('nl_NL');
$page->setName('Test 2');
$page->setCode('test-code-3');
$page->setSlug('test 2');
$page->setEnabled(false);
$this->getEntityManager()->persist($page);

$product = new Page();
$product->setCurrentLocale('en_US');
$product->setName('Test 3');
$product->setCode('test-code-4');
$product->setSlug('test 3');
$product->setCurrentLocale('nl_NL');
$product->setName('Test 3');
$product->setCode('test-code-4');
$product->setSlug('test 3');
$product->setEnabled(false);
$this->getEntityManager()->persist($product);
$page = new Page();
$page->setCurrentLocale('en_US');
$page->setName('Test 3');
$page->setCode('test-code-4');
$page->setSlug('test 3');
$page->setCurrentLocale('nl_NL');
$page->setName('Test 3');
$page->setCode('test-code-4');
$page->setSlug('test 3');
$page->setEnabled(false);
$this->getEntityManager()->persist($page);

$this->getEntityManager()->flush();
}
Expand Down

0 comments on commit 6f9b4f0

Please sign in to comment.