Skip to content

Commit

Permalink
fix page updage notifation test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Apr 6, 2021
1 parent e1eb169 commit d0e711d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/feed.xml
@@ -1 +1 @@
<rss xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:atom=http://www.w3.org/2005/Atom version=2.0><channel><title>Pushword - Modern CMS to build rapidly Websites (powered by Symfony)</title> <link>https://pushword.piedweb.com/ <description></description> <link href=https://pushword.piedweb.com/feed.xml rel=self type=application/rss+xml> <item><title></title> <link>https://pushword.piedweb.com/architecture <guid>https://pushword.piedweb.com/architecture</guid> <pubdate>Tue, 06 Apr 2021 18:09:03 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/command <guid>https://pushword.piedweb.com/command</guid> <pubdate>Tue, 06 Apr 2021 18:09:03 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/component/entity-filter <guid>https://pushword.piedweb.com/component/entity-filter</guid> <pubdate>Tue, 06 Apr 2021 18:09:03 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/configuration <guid>https://pushword.piedweb.com/configuration</guid> <pubdate>Tue, 06 Apr 2021 18:09:03 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/contribute <guid>https://pushword.piedweb.com/contribute</guid> <pubdate>Tue, 06 Apr 2021 18:09:03 +0200</pubdate></item></channel> </rss>
<rss xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:atom=http://www.w3.org/2005/Atom version=2.0><channel><title>Pushword - Modern CMS to build rapidly Websites (powered by Symfony)</title> <link>https://pushword.piedweb.com/ <description></description> <link href=https://pushword.piedweb.com/feed.xml rel=self type=application/rss+xml> <item><title></title> <link>https://pushword.piedweb.com/architecture <guid>https://pushword.piedweb.com/architecture</guid> <pubdate>Tue, 06 Apr 2021 18:12:37 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/command <guid>https://pushword.piedweb.com/command</guid> <pubdate>Tue, 06 Apr 2021 18:12:37 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/component/entity-filter <guid>https://pushword.piedweb.com/component/entity-filter</guid> <pubdate>Tue, 06 Apr 2021 18:12:37 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/configuration <guid>https://pushword.piedweb.com/configuration</guid> <pubdate>Tue, 06 Apr 2021 18:12:37 +0200</pubdate></item> <item><title></title> <link>https://pushword.piedweb.com/contribute <guid>https://pushword.piedweb.com/contribute</guid> <pubdate>Tue, 06 Apr 2021 18:12:37 +0200</pubdate></item></channel> </rss>
10 changes: 5 additions & 5 deletions packages/page-update-notifier/tests/PageUpdateNotifierTest.php
Expand Up @@ -61,16 +61,16 @@ public function testNoEmailToException()
public function testNoEmailFromException()
{
$notifier = $this->getNotifier();
$this->getApps()->get()->setCustomProperty('page_update_notification_mail', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_from', 'contact@example.tld');
$this->expectExceptionCode(PageUpdateNotifier::ERROR_NO_EMAIL);
$notifier->run($this->getPage());
}

public function testNoIntervalException()
{
$notifier = $this->getNotifier();
$this->getApps()->get()->setCustomProperty('page_update_notification_mail', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('notifier_email', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_from', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_to', 'contact@example.tld');

$this->expectExceptionCode(PageUpdateNotifier::ERROR_NO_INTERVAL);
$notifier->run($this->getPage());
Expand All @@ -79,8 +79,8 @@ public function testNoIntervalException()
public function testRun()
{
$notifier = $this->getNotifier();
$this->getApps()->get()->setCustomProperty('page_update_notification_mail', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('notifier_email', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_from', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_to', 'contact@example.tld');
$this->getApps()->get()->setCustomProperty('page_update_notification_interval', 'P1D');

FileSystem::delete($notifier->getCacheDir());
Expand Down
Binary file modified packages/skeleton/var/app.db
Binary file not shown.

0 comments on commit d0e711d

Please sign in to comment.