|  | @@ 39-45 (lines=7) @@ | 
                                                            
                                    | 36 |  |     /** | 
                                                            
                                    | 37 |  |      * Test building catalogue by domain name | 
                                                            
                                    | 38 |  |      */ | 
                                                            
                                    | 39 |  |     public function testBuildByDomain() | 
                                                            
                                    | 40 |  |     { | 
                                                            
                                    | 41 |  |         $preparedTranslations = $this->messagesFrontend->buildByDomain('messages'); | 
                                                            
                                    | 42 |  |         $this->assertEquals('key.hello', $preparedTranslations[0]['keyYml']); | 
                                                            
                                    | 43 |  |         $this->assertEquals('value.Hello', $preparedTranslations[0]['messageProps']['messageText']); | 
                                                            
                                    | 44 |  |         $this->assertArrayNotHasKey('validators', $preparedTranslations); | 
                                                            
                                    | 45 |  |     } | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  |     /** | 
                                                            
                                    | 48 |  |      * Test building catalogue by translation key | 
                                                                                
                                |  | @@ 50-56 (lines=7) @@ | 
                                                            
                                    | 47 |  |     /** | 
                                                            
                                    | 48 |  |      * Test building catalogue by translation key | 
                                                            
                                    | 49 |  |      */ | 
                                                            
                                    | 50 |  |     public function testBuildByKey() | 
                                                            
                                    | 51 |  |     { | 
                                                            
                                    | 52 |  |         $preparedTranslations = $this->messagesFrontend->buildByKey('key.not.blank'); | 
                                                            
                                    | 53 |  |         $this->assertEquals('key.not.blank', $preparedTranslations[0]['keyYml']); | 
                                                            
                                    | 54 |  |         $this->assertEquals('value.NotBlank', $preparedTranslations[0]['messageProps']['messageText']); | 
                                                            
                                    | 55 |  |         $this->assertArrayNotHasKey('messages', $preparedTranslations); | 
                                                            
                                    | 56 |  |     } | 
                                                            
                                    | 57 |  |  | 
                                                            
                                    | 58 |  |     /** | 
                                                            
                                    | 59 |  |      * Test building catalogue by given text | 
                                                                                
                                |  | @@ 61-67 (lines=7) @@ | 
                                                            
                                    | 58 |  |     /** | 
                                                            
                                    | 59 |  |      * Test building catalogue by given text | 
                                                            
                                    | 60 |  |      */ | 
                                                            
                                    | 61 |  |     public function testBuildByText() | 
                                                            
                                    | 62 |  |     { | 
                                                            
                                    | 63 |  |         $preparedTranslations = $this->messagesFrontend->buildByText('value.MaxLength'); | 
                                                            
                                    | 64 |  |         $this->assertEquals('key.max.length', $preparedTranslations[0]['keyYml']); | 
                                                            
                                    | 65 |  |         $this->assertEquals('value.MaxLength', $preparedTranslations[0]['messageProps']['messageText']); | 
                                                            
                                    | 66 |  |         $this->assertArrayNotHasKey('messages', $preparedTranslations); | 
                                                            
                                    | 67 |  |     } | 
                                                            
                                    | 68 |  |  | 
                                                            
                                    | 69 |  |     /** | 
                                                            
                                    | 70 |  |      * Test catalogue to get all messages from memcached |