Code Duplication    Length = 13-14 lines in 2 locations

tests/Win/Mvc/RouteTest.php 2 locations

@@ 39-52 (lines=14) @@
36
		$this->assertEquals(['index', null], Route::instance()->getCustomUrl());
37
	}
38
39
	public function testRouteToPageNotFound() {
40
		Url::instance()->setUrl('my-page/my-action/my-param/');
41
		$config = [
42
			'route' => [
43
				'other-page' => 'index'
44
			]
45
		];
46
47
		$app = new Application($config);
48
		$app->controller->load();
49
50
		$this->assertEquals('404', $app->getPage());
51
		$this->assertFalse(Route::instance()->hasCustomUrl());
52
	}
53
54
	public function testRouteToActionNotFound() {
55
		Url::instance()->setUrl('my-page/my-action/my-param/');
@@ 54-66 (lines=13) @@
51
		$this->assertFalse(Route::instance()->hasCustomUrl());
52
	}
53
54
	public function testRouteToActionNotFound() {
55
		Url::instance()->setUrl('my-page/my-action/my-param/');
56
		$config = [
57
			'route' => [
58
				'my-page/(.*)' => 'index/this-action-doeent-exit'
59
			]
60
		];
61
62
		$app = new Application($config);
63
		$app->controller->load();
64
65
		$this->assertEquals('404', $app->getPage());
66
	}
67
68
	public function testRouteWithCustomParam() {
69
		Url::instance()->setUrl('my-product/list/id/100');