Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F49508721
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
View Options
diff --git a/tests/Actions/AMQPActionTest.php b/tests/Actions/AMQPActionTest.php
new file mode 100644
index 0000000..c8f4bd6
--- /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
index 0000000..b897328
--- /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/x-diff
Expires
Mon, Sep 14, 16:26 (12 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4085861
Default Alt Text
(1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment