diff --git a/tests/test-api-filter-types.php b/tests/test-api-filter-types.php index 4d284751b..3078bd780 100644 --- a/tests/test-api-filter-types.php +++ b/tests/test-api-filter-types.php @@ -22,7 +22,7 @@ class TAINACAN_REST_Filter_Types_Controller extends TAINACAN_UnitApiTestCase { $this->assertEquals(count($filter_types), count($data)); foreach ($data as $ftype){ - $this->assertContains($ftype['name'], $filter_types); + $this->assertContains($ftype['filter_type'], $filter_types); } } }