◆ errorCollectionProvider()
  
  
      
        
          | static ilMailErrorFormatterTest::errorCollectionProvider  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Definition at line 49 of file ilMailErrorFormatterTest.php.
   56             'Exactly one error' => [
    62                 'error1<ul><li>error2</li></ul>'    64             'More than two errors with placeholders' => [
    66                 'error1<ul><li>error2</li><li>error3 (1. a/2. b/3. c)</li></ul>' 
 
 
 
◆ setUp()
  
  
      
        
          | ilMailErrorFormatterTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 25 of file ilMailErrorFormatterTest.php.
References ilMailBaseTestCase\setGlobalVariable().
   29         $componentFactory = $this->getMockBuilder(ilComponentFactory::class)->getMock();
    33         $languageMock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
    34         $languageMock->method(
'txt')->willReturnCallback(
static function (
string $key): 
string {
    35             if (
'error1' === $key) {
    36                 return '-' . $key . 
'-';
    39             if (
'error3' === $key) {
    40                 return $key . 
' (1. %s/2. %s/3. %s)';
 
setGlobalVariable(string $name, $value)
 
 
 
 
◆ testErrorFormatter()
      
        
          | ilMailErrorFormatterTest::testErrorFormatter  | 
          ( | 
          array  | 
          $errors,  | 
        
        
           | 
           | 
          string  | 
          $expectedHtml  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ $errorFormatter
The documentation for this class was generated from the following file: