TYPO3 CMS  TYPO3_6-2
ConstraintTest.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $subject = NULL;
27 
28  public function setUp() {
29  $this->subject = new \TYPO3\CMS\Belog\Domain\Model\Constraint();
30  }
31 
36  $date = new \DateTime();
37  $this->subject->setManualDateStart($date);
38 
39  $this->assertAttributeEquals($date, 'manualDateStart', $this->subject);
40  }
41 
46  $this->subject->setManualDateStart();
47 
48  $this->assertAttributeEquals(NULL, 'manualDateStart', $this->subject);
49  }
50 
55  $date = new \DateTime();
56  $this->subject->setManualDateStop($date);
57 
58  $this->assertAttributeEquals($date, 'manualDateStop', $this->subject);
59  }
60 
65  $this->subject->setManualDateStop();
66 
67  $this->assertAttributeEquals(NULL, 'manualDateStop', $this->subject);
68  }
69 }