TYPO3 CMS  TYPO3_7-6
DemandTest.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  protected $subject;
26 
27  protected function setUp()
28  {
29  $this->subject = new \TYPO3\CMS\Beuser\Domain\Model\Demand();
30  }
31 
36  {
38  $this->subject->setUserType($userType);
39  $this->assertSame($this->subject->getUserType(), $userType);
40  }
41 
46  {
48  $this->subject->setUserType($userType);
49  $this->assertSame($this->subject->getUserType(), $userType);
50  }
51 
56  {
58  $this->subject->setUserType($userType);
59  $this->assertSame($this->subject->getUserType(), $userType);
60  }
61 
66  {
68  $this->subject->setStatus($status);
69  $this->assertSame($this->subject->getStatus(), $status);
70  }
71 
76  {
78  $this->subject->setStatus($status);
79  $this->assertSame($this->subject->getStatus(), $status);
80  }
81 
86  {
88  $this->subject->setStatus($status);
89  $this->assertSame($this->subject->getStatus(), $status);
90  }
91 
96  {
98  $this->subject->setLogins($login);
99  $this->assertSame($this->subject->getLogins(), $login);
100  }
101 
106  {
108  $this->subject->setLogins($login);
109  $this->assertSame($this->subject->getLogins(), $login);
110  }
111 
116  {
118  $this->subject->setLogins($login);
119  $this->assertSame($this->subject->getLogins(), $login);
120  }
121 
126  {
127  $this->assertSame($this->subject->getUserName(), '', 'UserName must be empty string.');
128  }
129 
134  {
135  $newUserName = 'User#รครค*%^name';
136  $this->subject->setUserName($newUserName);
137  $this->assertSame($this->subject->getUserName(), $newUserName, 'UserName is not as set before.');
138  }
139 }