Details des Tickets
Beschreibung,Kommentare und Anhänge
| merge request id | 196 |
| Titel | LL-394: Add shorten_ou helper method |
| Beschreibung | Die neue Funktion heißt `shorten_ou`
Wie die Funktion funktioniert zeigt sich am besten in dem Test:
```php
$this->assertSame('Level 1 | ... | Level 4', shorten_ou($this->level4, 1, 1));
$this->assertSame('Level 1 | Level 2b | ... | Level 4', shorten_ou($this->level4, 2, 1));
$this->assertSame('Level 1 | ... | Level 3 | Level 4', shorten_ou($this->level4, 1, 2));
$this->assertSame('Level 1 | Level 2b | Level 3 | Level 4', shorten_ou($this->level4, 1, 10));
$this->assertSame('Level 1 | Level 2b | Level 3 | Level 4', shorten_ou($this->level4, 10, 10));
$this->assertSame('Level 1 | Level 2b | Level 3 | Level 4', shorten_ou($this->level4, 10, 0));
$this->assertSame('Level 1 | Level 2b | Level 3 | Level 4', shorten_ou($this->level4, 0, 10));
``` |
| Status | merged |
| Created at | 2020-06-09T14:24:53.162Z |
| Updated at | 2020-06-12T13:20:50.857Z |
| Source branch | feature/LL-394 |
| Target branch | develop |
| Author | Marcel Pociot |
| Assignee | Sascha Immig |