Changeset 1866
- Timestamp:
- 09/27/08 14:25:13 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubDateFilterAnnotation.php
r1865 r1866 119 119 { 120 120 $filter = new stubDateFilter($this->createRVEFactory()); 121 if (null !== $this->min Value || null !== $this->maxValue) {121 if (null !== $this->minDate || null !== $this->maxDate) { 122 122 $filter = new stubPeriodFilterDecorator($filter, $this->createRVEFactory()); 123 123 if (null !== $this->minDate) { … … 126 126 127 127 if (null !== $this->maxDate) { 128 $filter->setMaxDate($this->maxDate, $this->max vErrorId);128 $filter->setMaxDate($this->maxDate, $this->maxDateErrorId); 129 129 } 130 130 framework/trunk/src/test/php/net/stubbles/ipo/request/broker/annotations/stubDateFilterAnnotationTestCase.php
r1865 r1866 122 122 $this->assertType('stubPeriodFilterDecorator', $filter); 123 123 $this->assertTrue(stubDate::now()->equals($filter->getMinDate())); 124 $this->assertEquals(' VALUE_TOO_SMALL', $filter->getMinDateErrorId());124 $this->assertEquals('DATE_TOO_EARLY', $filter->getMinDateErrorId()); 125 125 $this->assertTrue(stubDate::now()->equals($filter->getMaxDate())); 126 $this->assertEquals(' VALUE_TOO_GREAT', $filter->getMaxDateErrorId());127 $this->assertType('stub FloatFilter', $filter->getDecoratedFilter());126 $this->assertEquals('DATE_TOO_LATE', $filter->getMaxDateErrorId()); 127 $this->assertType('stubDateFilter', $filter->getDecoratedFilter()); 128 128 } 129 129 … … 149 149 $this->assertEquals('differentMax', $filter->getMaxDateErrorId()); 150 150 $this->assertEquals('d/m/y', $filter->getDateFormat()); 151 $this->assertType('stub FloatFilter', $filter->getDecoratedFilter());151 $this->assertType('stubDateFilter', $filter->getDecoratedFilter()); 152 152 } 153 153 }
