public function testCreateUrl() { $this->assertStringEndsWith(Url::to('/cart/cart/index'), $this->object->createUrl()); $this->assertStringEndsWith(Url::to('/cart/cart/something'), $this->object->createUrl('something')); $this->assertStringEndsWith(Url::to(['/cart/cart/order', 'a' => 2]), $this->object->createUrl(['order', 'a' => 2])); $this->assertStringEndsWith(Url::to(['/cart/test/order', 'a' => 2]), $this->object->createUrl(['test/order', 'a' => 2])); }