Class ilMailTaskProcessorTest.
More...
◆ setUp()
| ilMailTaskProcessorTest::setUp |
( |
| ) |
|
|
protected |
- Exceptions
-
Definition at line 39 of file ilMailTaskProcessorTest.php.
43 $this->languageMock = $this->getMockBuilder(ilLanguage::class)
44 ->disableOriginalConstructor()
47 $this->dicMock = $this->getMockBuilder(Container::class)
48 ->disableOriginalConstructor()
51 $this->loggerMock = $this->getMockBuilder(ilLogger::class)
52 ->disableOriginalConstructor()
◆ testMailValueObjectCannotBeCreatedWithUnsupportedSubjectLength()
| ilMailTaskProcessorTest::testMailValueObjectCannotBeCreatedWithUnsupportedSubjectLength |
( |
| ) |
|
Definition at line 56 of file ilMailTaskProcessorTest.php.
58 $this->expectException(InvalidArgumentException::class);
65 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis posuere tincidunt. Phasellus et euismod ligula. Suspendisse dignissim eget dui nec imperdiet. Donec in pretium tellus. Maecenas lacinia eleifend erat ut euismod. Aenean eu malesuada est.',
◆ testOneTask()
| ilMailTaskProcessorTest::testOneTask |
( |
| ) |
|
- Exceptions
-
Definition at line 75 of file ilMailTaskProcessorTest.php.
77 $taskManager = $this->getMockBuilder(BasicTaskManager::class)
78 ->onlyMethods([
'run'])
79 ->disableOriginalConstructor()
83 ->expects($this->once())
87 ->onlyMethods([
'createTask'])
88 ->disableOriginalConstructor()
91 $backgroundTask = $this->getMockBuilder(ilMailDeliveryJob::class)
92 ->disableOriginalConstructor()
95 $backgroundTask->method(
'unfoldTask')
99 ->expects($this->exactly(2))
100 ->method(
'createTask')
101 ->willReturn($backgroundTask);
116 'somebody@iliase.de',
120 'Dear Steve, great!',
124 $mailValueObjects = [
130 $contextParameters = [];
Class ChatMainBarProvider .
RFC 822 Email address list validation Utility.
◆ testRunHasWrongTypeAndWillResultInException()
| ilMailTaskProcessorTest::testRunHasWrongTypeAndWillResultInException |
( |
| ) |
|
- Exceptions
-
Definition at line 309 of file ilMailTaskProcessorTest.php.
311 $this->expectException(ilMailException::class);
313 $taskManager = $this->getMockBuilder(BasicTaskManager::class)
314 ->onlyMethods([
'run'])
315 ->disableOriginalConstructor()
319 ->expects($this->never())
322 $taskFactory = $this->getMockBuilder(TaskFactory::class)
323 ->onlyMethods([
'createTask'])
324 ->disableOriginalConstructor()
327 $backgroundTask = $this->getMockBuilder(ilMailDeliveryJob::class)
328 ->disableOriginalConstructor()
332 ->method(
'unfoldTask')
336 ->expects($this->never())
337 ->method(
'createTask')
338 ->willReturn($backgroundTask);
350 $mailValueObjects = [];
354 'somebody@iliase.de',
358 'Dear Steve, great!',
364 'somebodyelse@iliase.de',
368 'Steve, Steve, Steve. Wait that is not Steve',
372 $mailValueObjects[] =
'This should fail';
376 $contextParameters = [];
Class ChatMainBarProvider .
RFC 822 Email address list validation Utility.
◆ testRunThreeTasksInDifferentBuckets()
| ilMailTaskProcessorTest::testRunThreeTasksInDifferentBuckets |
( |
| ) |
|
- Exceptions
-
Definition at line 221 of file ilMailTaskProcessorTest.php.
223 $taskManager = $this->getMockBuilder(BasicTaskManager::class)
224 ->onlyMethods([
'run'])
225 ->disableOriginalConstructor()
229 ->expects($this->exactly(2))
232 $taskFactory = $this->getMockBuilder(TaskFactory::class)
233 ->onlyMethods([
'createTask'])
234 ->disableOriginalConstructor()
237 $backgroundTask = $this->getMockBuilder(ilMailDeliveryJob::class)
238 ->disableOriginalConstructor()
242 ->method(
'unfoldTask')
246 ->expects($this->exactly(4))
247 ->method(
'createTask')
248 ->willReturn($backgroundTask);
260 $mailValueObjects = [];
264 'somebody@iliase.de',
268 'Dear Steve, great!',
274 'somebodyelse@iliase.de',
278 'Steve, Steve, Steve. Wait that is not Steve',
284 'somebody@iliase.de',
288 'Hey Alan! Alan! Alan!',
294 $contextParameters = [];
Class ChatMainBarProvider .
RFC 822 Email address list validation Utility.
◆ testRunTwoTasks()
| ilMailTaskProcessorTest::testRunTwoTasks |
( |
| ) |
|
- Exceptions
-
Definition at line 144 of file ilMailTaskProcessorTest.php.
146 $taskManager = $this->getMockBuilder(BasicTaskManager::class)
147 ->onlyMethods([
'run'])
148 ->disableOriginalConstructor()
152 ->expects($this->once())
155 $taskFactory = $this->getMockBuilder(TaskFactory::class)
156 ->onlyMethods([
'createTask'])
157 ->disableOriginalConstructor()
160 $backgroundTask = $this->getMockBuilder(ilMailDeliveryJob::class)
161 ->disableOriginalConstructor()
165 ->method(
'unfoldTask')
169 ->expects($this->exactly(2))
170 ->method(
'createTask')
171 ->willReturn($backgroundTask);
183 $mailValueObjects = [];
187 'somebody@iliase.de',
191 'Dear Steve, great!',
197 'somebodyelse@iliase.de',
201 'Steve, Steve, Steve. Wait that is not Steve',
207 $contextParameters = [];
Class ChatMainBarProvider .
RFC 822 Email address list validation Utility.
◆ $dicMock
◆ $languageMock
◆ $loggerMock
| ilLogger ilMailTaskProcessorTest::$loggerMock |
|
private |
◆ SOME_USER_ID
| const ilMailTaskProcessorTest::SOME_USER_ID = 113 |
|
protected |
The documentation for this class was generated from the following file: