Skip to content

Commit 8c066e0

Browse files
Fix tests (#191)
* Use namespace without trailing slash * Don't use blueprint that doesn't exist * Trim whitespace and newlines around description. * Temporarily pass test (fix for locales coming in separate PR). Co-authored-by: Jesse Leite <jesseleite@gmail.com>
1 parent 4f9f022 commit 8c066e0

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/Cascade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ protected function parseDescriptionField($value)
302302
return null;
303303
}
304304

305-
$value = strip_tags($value);
305+
$value = trim(strip_tags($value));
306306

307307
if (strlen($value) > 320) {
308308
$value = substr($value, 0, 320).'...';

tests/Fixtures/content/collections/pages/home.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Home
33
template: home
4-
blueprint: home
54
subtitle: 'I see pride. I see power.'
65
updated_by: b6c037ad-5bcc-41a8-a455-9ab54573f689
76
updated_at: 1606223924

tests/MetaTagTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function it_generates_normalized_meta()
3535
<meta property="og:description" content="I see a bad-ass mother." />
3636
<meta property="og:url" content="http://cool-runnings.com" />
3737
<meta property="og:site_name" content="Site Name" />
38-
<meta property="og:locale" content="default" />
38+
<meta property="og:locale" content="en" />
3939
<meta name="twitter:card" content="summary_large_image" />
4040
<meta name="twitter:title" content="Home" />
4141
<meta name="twitter:description" content="I see a bad-ass mother." />

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function getEnvironmentSetUp($app)
7777
$app->make(Manifest::class)->manifest = [
7878
'statamic/seo-pro' => [
7979
'id' => 'statamic/seo-pro',
80-
'namespace' => 'Statamic\\SeoPro\\',
80+
'namespace' => 'Statamic\\SeoPro',
8181
],
8282
];
8383
}

0 commit comments

Comments
 (0)