Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
fe522a86
Commit
fe522a86
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Assert some guids and timestamps.
parent
37361158
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/common_syndication_parser.test
+6
-0
6 additions, 0 deletions
tests/common_syndication_parser.test
with
6 additions
and
0 deletions
tests/common_syndication_parser.test
+
6
−
0
View file @
fe522a86
...
@@ -45,6 +45,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
...
@@ -45,6 +45,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'title'
],
'Gezondheidswebwinkel'
);
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'title'
],
'Gezondheidswebwinkel'
);
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'url'
],
'http://www.magentosites.net/store/2010/04/28/gezondheidswebwinkel/index.html'
);
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'url'
],
'http://www.magentosites.net/store/2010/04/28/gezondheidswebwinkel/index.html'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'url'
],
'http://www.magentosites.net/store/2010/04/26/mybobinocom/index.html'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'url'
],
'http://www.magentosites.net/store/2010/04/26/mybobinocom/index.html'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'guid'
],
'http://www.magentosites.net/node/3472'
);
$this
->
assertEqual
(
$feed
[
'items'
][
2
][
'guid'
],
'http://www.magentosites.net/node/3471'
);
$this
->
assertEqual
(
$feed
[
'items'
][
2
][
'timestamp'
],
1272285294
);
}
}
/**
/**
...
@@ -56,6 +59,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
...
@@ -56,6 +59,9 @@ class CommonSyndicationParserTestCase extends DrupalWebTestCase {
$this
->
assertEqual
(
$feed
[
'title'
],
'Development Seed - Technological Solutions for Progressive Organizations'
);
$this
->
assertEqual
(
$feed
[
'title'
],
'Development Seed - Technological Solutions for Progressive Organizations'
);
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'title'
],
'Open Atrium Translation Workflow: Two Way Translation Updates'
);
$this
->
assertEqual
(
$feed
[
'items'
][
0
][
'title'
],
'Open Atrium Translation Workflow: Two Way Translation Updates'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'url'
],
'http://developmentseed.org/blog/2009/oct/05/week-dc-tech-october-5th-edition'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'url'
],
'http://developmentseed.org/blog/2009/oct/05/week-dc-tech-october-5th-edition'
);
$this
->
assertEqual
(
$feed
[
'items'
][
1
][
'guid'
],
'973 at http://developmentseed.org'
);
$this
->
assertEqual
(
$feed
[
'items'
][
2
][
'guid'
],
'972 at http://developmentseed.org'
);
$this
->
assertEqual
(
$feed
[
'items'
][
2
][
'timestamp'
],
1254493864
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment