Example #1
0
 /**
  * Get count of websites, minus one to exclude admin website
  *
  * @return int
  */
 public function getWebsiteCount()
 {
     $count = $this->websiteManagement->getCount();
     return (int) $count;
 }
 /**
  * Tests websites count will return int
  *
  * @return void
  */
 public function testGetWebsiteCount()
 {
     $this->websiteManagement->expects($this->once())->method('getCount')->willReturn(1);
     $this->assertInternalType('int', $this->model->getWebsiteCount());
 }