Updated tests.

This commit is contained in:
James Cole
2014-12-20 15:00:53 +01:00
parent e86547645c
commit 82e438d29b
44 changed files with 2000 additions and 306 deletions

View File

@@ -36,8 +36,8 @@ class PiggybankPart
public function getReminder()
{
if (is_null($this->reminder)) {
$this->reminder = $this->repetition->piggybank->reminders()->where('startdate', $bar->getStartdate()->format('Y-m-d'))->where(
'enddate', $bar->getTargetdate()->format('Y-m-d')
$this->reminder = $this->repetition->piggybank->reminders()->where('startdate', $this->getStartdate()->format('Y-m-d'))->where(
'enddate', $this->getTargetdate()->format('Y-m-d')
)->first();
}
@@ -52,22 +52,6 @@ class PiggybankPart
$this->reminder = $reminder;
}
/**
* @return \PiggybankRepetition
*/
public function getRepetition()
{
return $this->repetition;
}
/**
* @param \PiggybankRepetition $repetition
*/
public function setRepetition($repetition)
{
$this->repetition = $repetition;
}
/**
* @return Carbon
*/
@@ -100,6 +84,22 @@ class PiggybankPart
$this->targetdate = $targetdate;
}
/**
* @return \PiggybankRepetition
*/
public function getRepetition()
{
return $this->repetition;
}
/**
* @param \PiggybankRepetition $repetition
*/
public function setRepetition($repetition)
{
$this->repetition = $repetition;
}
/**
* @return bool
*/