@@ 42-52 (lines=11) @@ | ||
39 | $this->assertInstanceOf('IrishDan\NotificationBundle\Message\MessageInterface', $message); |
|
40 | } |
|
41 | ||
42 | public function testDispatch() |
|
43 | { |
|
44 | $message = $this->getTestMessage(); |
|
45 | ||
46 | $adapter = $this->getMockAdapter(false, true); |
|
47 | $channel = $this->getChannel($adapter); |
|
48 | ||
49 | $dispatched = $channel->dispatch($message); |
|
50 | ||
51 | $this->assertTrue($dispatched); |
|
52 | } |
|
53 | ||
54 | public function testFormatAndDispatch() |
|
55 | { |
|
@@ 54-62 (lines=9) @@ | ||
51 | $this->assertTrue($dispatched); |
|
52 | } |
|
53 | ||
54 | public function testFormatAndDispatch() |
|
55 | { |
|
56 | $adapter = $this->getMockAdapter(true, true); |
|
57 | $channel = $this->getChannel($adapter); |
|
58 | ||
59 | $dispatched = $channel->formatAndDispatch($this->notification); |
|
60 | ||
61 | $this->assertTrue($dispatched); |
|
62 | } |
|
63 | ||
64 | public function testChannelDataIsPassedToAdapter() |
|
65 | { |