コード例 #1
0
ファイル: Counter.php プロジェクト: pradeep-wagento/magento2
 /**
  * Get count of websites, minus one to exclude admin website
  *
  * @return int
  */
 public function getWebsiteCount()
 {
     $count = $this->websiteManagement->getCount();
     return (int) $count;
 }
コード例 #2
0
 /**
  * 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());
 }