diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-12-03 21:40:46 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-17 18:18:39 +0100 |
commit | 570c75db776a79294d97a05cd8ac63ac4ab39685 (patch) | |
tree | deedd28a10628a06b9d0b53400a2719b7a659562 /tests/integration/fixtures/itemfixture.php | |
parent | e5d606d3ee7dc046e7db9eb1f94b6cc6e542ecbe (diff) |
fix several integration test issues
Diffstat (limited to 'tests/integration/fixtures/itemfixture.php')
-rw-r--r-- | tests/integration/fixtures/itemfixture.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/fixtures/itemfixture.php b/tests/integration/fixtures/itemfixture.php index ac9191c4d..8914773dc 100644 --- a/tests/integration/fixtures/itemfixture.php +++ b/tests/integration/fixtures/itemfixture.php @@ -20,8 +20,7 @@ class ItemFixture extends Item { public function __construct(array $defaults=[]) { parent::__construct(); - $defaults = array_combine([ - 'guid' => 'guid', + $defaults = array_merge([ 'url' => 'http://google.de', 'title' => 'title', 'author' => 'author', @@ -34,17 +33,18 @@ class ItemFixture extends Item { 'lastModified' => 113, 'rtl' => false, ], $defaults); - $this->fillDefaults($defaults); if (!array_key_exists('guid', $defaults)) { - $this->setGuid($this->getTitle()); + $defaults['guid'] = $defaults['title']; } if (!array_key_exists('guidHash', $defaults)) { - $this->setGuidHash($this->getGuid()); + $defaults['guidHash'] = $defaults['guid']; } $this->generateSearchIndex(); + + $this->fillDefaults($defaults); } } |