| @@ 40-46 (lines=7) @@ | ||
| 37 | $this->assertEquals($expected, $this->item->getTitle()); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testDescription() |
|
| 41 | { |
|
| 42 | $expected = 'The Item\'s description'; |
|
| 43 | $this->assertNull($this->item->getDescription()); |
|
| 44 | $this->assertSame($this->item, $this->item->setDescription($expected)); |
|
| 45 | $this->assertEquals($expected, $this->item->getDescription()); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function testAuthor() |
|
| 49 | { |
|
| @@ 50-56 (lines=7) @@ | ||
| 47 | $this->assertEquals($expected, $this->level->getScore()); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testGeneratesNotification() |
|
| 51 | { |
|
| 52 | $expected = true; |
|
| 53 | $this->assertNull($this->level->getGeneratesNotification()); |
|
| 54 | $this->assertSame($this->level, $this->level->setGeneratesNotification($expected)); |
|
| 55 | $this->assertEquals($expected, $this->level->getGeneratesNotification()); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function testCategoryEnabled() |
|
| 59 | { |
|
| @@ 45-51 (lines=7) @@ | ||
| 42 | $this->assertSame($expected, $this->quest->getCode()); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function testGeneratesNotification() |
|
| 46 | { |
|
| 47 | $expected = true; |
|
| 48 | $this->assertNull($this->quest->getGeneratesNotification()); |
|
| 49 | $this->assertSame($this->quest, $this->quest->setGeneratesNotification($expected)); |
|
| 50 | $this->assertEquals($expected, $this->quest->getGeneratesNotification()); |
|
| 51 | } |
|
| 52 | ||
| 53 | public function testName() |
|
| 54 | { |
|
| @@ 53-59 (lines=7) @@ | ||
| 50 | $this->assertEquals($expected, $this->quest->getGeneratesNotification()); |
|
| 51 | } |
|
| 52 | ||
| 53 | public function testName() |
|
| 54 | { |
|
| 55 | $expected = 'The Quest'; |
|
| 56 | $this->assertNull($this->quest->getName()); |
|
| 57 | $this->assertSame($this->quest, $this->quest->setName($expected)); |
|
| 58 | $this->assertSame($expected, $this->quest->getName()); |
|
| 59 | } |
|
| 60 | ||
| 61 | public function testDescription() |
|
| 62 | { |
|
| @@ 61-67 (lines=7) @@ | ||
| 58 | $this->assertSame($expected, $this->quest->getName()); |
|
| 59 | } |
|
| 60 | ||
| 61 | public function testDescription() |
|
| 62 | { |
|
| 63 | $expected = 'The Quest\'s description'; |
|
| 64 | $this->assertNull($this->quest->getDescription()); |
|
| 65 | $this->assertSame($this->quest, $this->quest->setDescription($expected)); |
|
| 66 | $this->assertSame($expected, $this->quest->getDescription()); |
|
| 67 | } |
|
| 68 | ||
| 69 | public function testProgress() |
|
| 70 | { |
|
| @@ 40-46 (lines=7) @@ | ||
| 37 | $this->assertEquals($expected, $this->team->getAvatar()); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testDescription() |
|
| 41 | { |
|
| 42 | $expected = 'Team\'s description'; |
|
| 43 | $this->assertNull($this->team->getDescription()); |
|
| 44 | $this->assertSame($this->team, $this->team->setDescription($expected)); |
|
| 45 | $this->assertEquals($expected, $this->team->getDescription()); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function testScore() |
|
| 49 | { |
|
| @@ 146-152 (lines=7) @@ | ||
| 143 | $this->assertEquals($expected, $this->user->getLocale()); |
|
| 144 | } |
|
| 145 | ||
| 146 | public function testTimezone() |
|
| 147 | { |
|
| 148 | $expected = 'Europe/London'; |
|
| 149 | $this->assertNull($this->user->getTimezone()); |
|
| 150 | $this->assertSame($this->user, $this->user->setTimezone($expected)); |
|
| 151 | $this->assertEquals($expected, $this->user->getTimezone()); |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||