예제 #1
0
 /**
  * @param bool $expectedResult
  * @param int $sessionsNumber
  * @dataProvider dataProviderAreMultipleSessionsActive
  */
 public function testAreMultipleSessionsActive($expectedResult, $sessionsNumber)
 {
     $this->sessionsManager->expects($this->once())->method('getSessionsForCurrentUser')->willReturn($this->collectionMock);
     $this->collectionMock->expects($this->any())->method('count')->willReturn($sessionsNumber);
     $this->assertEquals($expectedResult, $this->block->areMultipleSessionsActive());
 }