| @@ 74-88 (lines=15) @@ | ||
| 71 | * Get a list of valid content data for testing |
|
| 72 | * @return array |
|
| 73 | */ |
|
| 74 | public static function getValidContentData() { |
|
| 75 | return array( |
|
| 76 | [ |
|
| 77 | [ |
|
| 78 | "summary" => "A product summary", |
|
| 79 | "description" => "A detailed product description", |
|
| 80 | ], |
|
| 81 | ||
| 82 | [ |
|
| 83 | "summary" => "ABCdefghijklmnopqrstuvwxyzöüä.ABCdefghijklmnopqrstuvwxyzöüä.ABCdefghijklmnopqrstuvwxyzöüä.ABCdefghijklmnopqrstuvwxyzöüä.", |
|
| 84 | "description" => "A detailed product description ...", |
|
| 85 | ] |
|
| 86 | ] |
|
| 87 | ); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * Get a list of valid content data for testing |
|
| @@ 119-134 (lines=16) @@ | ||
| 116 | * Get a list of content data object with missing attribtues for testing |
|
| 117 | * @return array |
|
| 118 | */ |
|
| 119 | public static function getContentDataWithMissingAttributes() { |
|
| 120 | return array( |
|
| 121 | [ |
|
| 122 | // wrong casing |
|
| 123 | [ |
|
| 124 | "SUMMARY" => "A product summary", |
|
| 125 | "description" => "A detailed product description", |
|
| 126 | ], |
|
| 127 | ||
| 128 | // summary missing |
|
| 129 | [ |
|
| 130 | "description" => "A detailed product description", |
|
| 131 | ] |
|
| 132 | ] |
|
| 133 | ); |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||