Skip to content

Commit

Permalink
update tests for message and factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjeng Pho committed Dec 21, 2016
1 parent f732161 commit 8764bfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Factory/DeployNotifierFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ public function testGetHipChatNotifier()
{
$this->assertInstanceOf(HipChatNotifier::class ,$this->deployNotifierFactory->create(DeployNotifierFactory::HIPCHAT));
}

public function testDefaultNotifier()
{
$this->assertInstanceOf(HipChatNotifier::class ,$this->deployNotifierFactory->create('foo'));
}
}
3 changes: 3 additions & 0 deletions tests/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ public function testGettersAndSetters()

$message->setColor('red');
$this->assertSame('red', $message->getColor());

$message->setHtml(true);
$this->assertTrue($message->isHtml());
}
}

0 comments on commit 8764bfa

Please sign in to comment.