Fix failing tests
There were still products from BuysAProductTriggerTest in the database, and because we set date_created to past, different products were chosen in the preview. Removing the date_created should make ACC products the most recent ones to be picked in the preview.
This commit is contained in:
committed by
Rostislav Wolný
parent
6350652dcc
commit
3f0ec31d08
@@ -82,10 +82,10 @@ class AbandonedCartContentTest extends \MailPoetTest {
|
||||
}
|
||||
|
||||
$this->productIds = [];
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 1', 'date_created' => '2020-05-01 01:01:01'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 2', 'date_created' => '2020-06-01 01:01:01'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 3', 'date_created' => '2020-07-01 01:01:01'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 4', 'date_created' => '2020-08-01 01:01:01'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 1'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 2'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 3'])->get_id();
|
||||
$this->productIds[] = $this->tester->createWooCommerceProduct(['name' => 'ACC Product 4'])->get_id();
|
||||
}
|
||||
|
||||
public function testItDoesNotRenderIfNewsletterTypeIsNotAutomatic() {
|
||||
|
Reference in New Issue
Block a user