TYPO3 CMS  TYPO3_6-2
DemandTest.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $fixture;
26 
27  public function setUp() {
28  $this->fixture = new \TYPO3\CMS\Beuser\Domain\Model\Demand();
29  }
30 
36  $this->fixture->setUserType($userType);
37  $this->assertSame($this->fixture->getUserType(), $userType);
38  }
39 
45  $this->fixture->setUserType($userType);
46  $this->assertSame($this->fixture->getUserType(), $userType);
47  }
48 
54  $this->fixture->setUserType($userType);
55  $this->assertSame($this->fixture->getUserType(), $userType);
56  }
57 
61  public function setStatusAllExpectedValueForInt() {
63  $this->fixture->setStatus($status);
64  $this->assertSame($this->fixture->getStatus(), $status);
65  }
66 
72  $this->fixture->setStatus($status);
73  $this->assertSame($this->fixture->getStatus(), $status);
74  }
75 
81  $this->fixture->setStatus($status);
82  $this->assertSame($this->fixture->getStatus(), $status);
83  }
84 
88  public function setLoginAllExpectedValueForInt() {
90  $this->fixture->setLogins($login);
91  $this->assertSame($this->fixture->getLogins(), $login);
92  }
93 
97  public function setLoginNoneExpectedValueForInt() {
99  $this->fixture->setLogins($login);
100  $this->assertSame($this->fixture->getLogins(), $login);
101  }
102 
108  $this->fixture->setLogins($login);
109  $this->assertSame($this->fixture->getLogins(), $login);
110  }
111 
116  $this->assertSame($this->fixture->getUserName(), '', 'UserName must be empty string.');
117  }
118 
123  $newUserName = 'User#รครค*%^name';
124  $this->fixture->setUserName($newUserName);
125  $this->assertSame($this->fixture->getUserName(), $newUserName, 'UserName is not as set before.');
126  }
127 
128 }