+ protected fun addAlbum(album: Album, albumId: String? = null) {
+ albums[albumId ?: album.id] = album
+ }
+
+ protected fun addImage(image: Image, imageId: String? = null) {
+ images[imageId ?: image.id] = image
+ }
+
+ protected fun addTranslation(key: String, value: String) {
+ translations[key] = value
+ }
+
+ @Test
+ fun `page returns correct path`() {
+ assertThat(page.path, equalTo(expectedPath))
+ }
+
+ @Test
+ fun `page needs form password`() {
+ assertThat(page.needsFormPassword(), equalTo(needsFormPassword))
+ }
+
+ @Test
+ fun `page requires login`() {
+ assertThat(page.requiresLogin(), equalTo(requiresLogin))
+ }
+