public function withFieldId($field_id) { $this->field = aDateField()->withId($field_id)->build(); return $this; }
public function itReturnsAllSharedFieldsThatTheTrackerExports() { $project_id = 1; $sharedRow1 = $this->createRow(999, 'text'); $sharedRow2 = $this->createRow(666, 'date'); $dar = TestHelper::arrayToDar($sharedRow1, $sharedRow2); $factory = $this->GivenSearchAllSharedTargetsOfProjectReturnsDar($dar, $project_id); $textField = aTextField()->withId(999)->build(); $dateField = aDateField()->withId(666)->build(); $this->ThenICompareProjectSharedFieldsWithExpectedResult($factory, $project_id, array($textField, $dateField)); }