コード例 #1
0
 public function testGetAndSetShouldSlideToSecondPanel()
 {
     $this->assertTrue(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel(10));
     $this->assertTrue(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel('aString'));
     PersonSlidingPanelsUtil::setShouldSlideToSecondPanelForCurrentUser(10, false);
     $this->assertFalse(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel(10));
     $this->assertTrue(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel('aString'));
     PersonSlidingPanelsUtil::setShouldSlideToSecondPanelForCurrentUser('aString', false);
     $this->assertFalse(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel('aString'));
     PersonSlidingPanelsUtil::setShouldSlideToSecondPanelForCurrentUser(10, true);
     PersonSlidingPanelsUtil::setShouldSlideToSecondPanelForCurrentUser('aString', true);
     $this->assertTrue(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel(10));
     $this->assertTrue(PersonSlidingPanelsUtil::resolveShouldSlideToSecondPanel('aString'));
 }