Page MenuHomeDevCentral

D172.id410.diff
No OneTemporary

D172.id410.diff

diff --git a/tests/Actions/AMQPActionTest.php b/tests/Actions/AMQPActionTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Actions/AMQPActionTest.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Actions;
+
+use Illuminate\Foundation\Testing\WithoutMiddleware;
+
+use Nasqueron\Notifications\Actions\AMQPAction;
+use Nasqueron\Notifications\Tests\TestCase;
+
+class AMQPActionTest extends TestCase {
+
+ protected $action;
+
+ public function setUp () {
+ $this->action = new AMQPAction(
+ 'method',
+ 'target'
+ );
+ }
+
+ public function testPublicProperties () {
+ $this->assertNull($this->action->error);
+ $this->assertEquals('AMQPAction', $this->action->action);
+ }
+}
diff --git a/tests/Actions/ActionErrorTest.php b/tests/Actions/ActionErrorTest.php
new file mode 100644
--- /dev/null
+++ b/tests/Actions/ActionErrorTest.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Nasqueron\Notifications\Tests\Actions;
+
+use Illuminate\Foundation\Testing\WithoutMiddleware;
+
+use Nasqueron\Notifications\Actions\ActionError;
+use Nasqueron\Notifications\Tests\TestCase;
+
+class ActionErrorTest extends TestCase {
+
+ protected $actionError;
+
+ public function setUp () {
+ $ex = new \RuntimeException('Lorem ipsum dolor');
+ $this->actionError = new ActionError($ex);
+ }
+
+ public function testPublicProperties () {
+ $this->assertSame('RuntimeException', $this->actionError->type);
+ $this->assertSame('Lorem ipsum dolor', $this->actionError->message);
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 09:54 (16 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2311691
Default Alt Text
D172.id410.diff (1 KB)

Event Timeline