Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3929608
D172.id409.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D172.id409.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 10:02 (16 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2311691
Default Alt Text
D172.id409.diff (1 KB)
Attached To
Mode
D172: Tests for ActionError and AMQPAction
Attached
Detach File
Event Timeline
Log In to Comment