-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.3.0] Tests are broken again :-( #1960
Comments
|
Worked in 899da2a Related: #1486 @niden Could you please take a look? |
Looks like 1.2.5/6 behave the same way now and if the URL is local, this should be mentioned explicitly. |
This "should" work the same way in 1.3.0. Do we need to change the Tag? If In your example above I saw that there is an error for remote URLs (see it The contents of this message may contain confidential or privileged On Sun, Feb 2, 2014 at 12:26 AM, Vladimir Kolesnikov <
|
Well… I think the test needs to be updated: public function testStylesheetLinkWithArrayLocal()
{
$options = array('css/phalcon.css');
- $expected = '<link rel="stylesheet" type="text/css" href="css/phalcon.css">' . PHP_EOL;
+ $expected = '<link rel="stylesheet" type="text/css" href="/css/phalcon.css">' . PHP_EOL;
$actual = \Phalcon\Tag::stylesheetLink($options);
$this->assertEquals(
$expected,
$actual,
sprintf($this->message, 'StylesheetLink local with Array')
);
} In 5c9c64b the URLs became local unless explicitly stated otherwise; local URLs are subject to prepending the base URL. The base URL is set to '/', thus all local URLs will have '/' prepended. |
The text was updated successfully, but these errors were encountered: