--- a/server/src/tests/Controllers/ThemeControllerTest.php Wed Sep 28 15:58:18 2016 +0200
+++ b/server/src/tests/Controllers/ThemeControllerTest.php Wed Sep 28 17:24:02 2016 +0200
@@ -42,7 +42,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/');
+ $this->get('/api/v1/stats/themes/');
}
public function testIndexQueryBnf() {
@@ -60,7 +60,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/?filter=bnf');
+ $this->get('/api/v1/stats/themes/?filter=bnf');
}
@@ -78,7 +78,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/?filter=all');
+ $this->get('/api/v1/stats/themes/?filter=all');
}
@@ -96,7 +96,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/?filter=none');
+ $this->get('/api/v1/stats/themes/?filter=none');
}
@@ -114,7 +114,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/?filter=');
+ $this->get('/api/v1/stats/themes/?filter=');
}
public function testIndexQueryUri() {
@@ -132,7 +132,7 @@
->with($query)
->once()
->andReturn(new \ArrayIterator([]));
- $this->get('/api/v1/themes/?filter=uri');
+ $this->get('/api/v1/stats/themes/?filter=uri');
}
@@ -146,7 +146,7 @@
(object)['theme'=>new Resource('http://ark.bnf.fr/ark:/12148/cb119339867'), 'count' => Literal::create(33)],
(object)['theme'=>Literal::create('Français', 'fr'), 'count' => Literal::create(22)],
]));
- $this->get('/api/v1/themes/')->assertTrue($this->response->isOk(), $this->response->content());
+ $this->get('/api/v1/stats/themes/')->assertTrue($this->response->isOk(), $this->response->content());
$this->seeJsonEquals(["themes" => [
"http://lexvo.org/id/iso639-3/gsw" => ["label" => "alémanique", "count" => 44],
"http://ark.bnf.fr/ark:/12148/cb119339867" => ["label" => "famille", "count" => 33],