Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321574
StatusEventTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
806 B
Referenced Files
None
Subscribers
None
StatusEventTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Analyzers\GitHub\Events
;
use
Nasqueron\Notifications\Analyzers\GitHub\Events\StatusEvent
;
use
Nasqueron\Notifications\Tests\TestCase
;
class
StatusEventTest
extends
TestCase
{
/**
* @var stdClass
*/
private
$payload
;
public
function
setUp
()
{
$filename
=
__DIR__
.
"/../../../data/payloads/GitHubEvents/status.json"
;
$this
->
payload
=
json_decode
(
file_get_contents
(
$filename
));
parent
::
setUp
();
}
public
function
testWhenStatusContainsUrl
()
{
$payload
=
clone
$this
->
payload
;
$payload
->
target_url
=
"http://www.perdu.com/"
;
$event
=
new
StatusEvent
(
$payload
);
$this
->
assertSame
(
"http://www.perdu.com/"
,
$event
->
getLink
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 16:46 (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569508
Default Alt Text
StatusEventTest.php (806 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment