Ejemplo n.º 1
0
 public function testComposeFailsIfConfigurationNotFound()
 {
     $test = new DayComposer();
     $this->setupMockConfig('fail');
     $view = $this->getMockView(Null, Null);
     $view->shouldReceive('with')->with('dayTitle', Null)->once();
     $view->shouldReceive('with')->with('day', Null)->once();
     $test->compose($view);
 }
Ejemplo n.º 2
0
 public function compose($view)
 {
     parent::compose($view);
     $this->view->with('day3', $this->getPaddedDayValue());
 }
Ejemplo n.º 3
0
 public function compose($view)
 {
     parent::compose($view);
     $this->loadPropertyFromConfig('dayPath', self::DAY_PATH);
     $this->view->with('dayLink', $this->getDayLink());
 }