Skip to content

Commit 8be8034

Browse files
committed
Fix parsing error.
1 parent 73c1853 commit 8be8034

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sftp-config.json
66
composer.lock
77
.subsplit
88
.php_cs.cache
9+
index.php

src/BookFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public static function make($body): Book
4646
->setSummary($params['summary'])
4747
->setCover($params['images']['large'])
4848
->setTags(array_column($params['tags'], 'name'))
49-
->setAltUrl($params['alt_url']);
49+
->setAltUrl($params['alt']);
5050
}
5151
}

tests/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testGetBook(string $isbn)
7777
200, [],
7878
'{"title":"","price":"","author":[],"publisher":""'
7979
.',"author_intro":"","subtitle":"","isbn13":"","images":{"large":""},'
80-
.'"catalog":"","pubdate":"","tags":[],"summary":"","alt_url":""}'
80+
.'"catalog":"","pubdate":"","tags":[],"summary":"","alt":""}'
8181
);
8282
$client = \Mockery::mock(Client::class);
8383
$client->allows()

0 commit comments

Comments
 (0)