Browse Source

More test fixes

tags/3.0.0-alpha1
Alexander Makarov 7 years ago
parent
commit
ac167cbd10
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      tests/framework/log/TargetTest.php
  2. 2
      tests/framework/web/RequestTest.php

2
tests/framework/log/TargetTest.php

@ -149,7 +149,7 @@ class TargetTest extends TestCase
$target = $this->getMockForAbstractClass('yii\\log\\Target'); $target = $this->getMockForAbstractClass('yii\\log\\Target');
$text = 'message'; $text = 'message';
$level = Logger::LEVEL_INFO; $level = LogLevel::INFO;
$category = 'application'; $category = 'application';
$timestamp = 1508160390.6083; $timestamp = 1508160390.6083;

2
tests/framework/web/RequestTest.php

@ -542,7 +542,7 @@ class RequestTest extends TestCase
unset($_SERVER['HTTP_ORIGIN']); unset($_SERVER['HTTP_ORIGIN']);
$request = new Request(); $request = new Request();
$this->assertNull($request->getOrigin()); $this->assertSame('', $request->getOrigin());
} }
public function httpAuthorizationHeadersProvider() public function httpAuthorizationHeadersProvider()

Loading…
Cancel
Save