Commit graph

39 commits

Author SHA1 Message Date
Oliver Davies bf1fce2a52 Update README.md 2020-03-07 20:15:32 +00:00
Oliver Davies 8d0c16dd8e Add core_version_requirement 2020-03-07 17:17:32 +00:00
Oliver Davies dcab1aca9a Use constant for the response code 2020-03-07 17:16:50 +00:00
Oliver Davies 52f13fcac8 Add $defaultTheme
Required for Drupal 9.0.

See https://www.drupal.org/node/3083055.
2020-03-07 17:15:23 +00:00
Oliver Davies 772d3d31b0
Update node.type.article.yml 2019-03-02 11:13:16 +00:00
Oliver Davies ccaa426a38 Change to tdd_blog 2018-09-07 18:33:14 +01:00
Oliver Davies 5be880e496
Create composer.json 2018-06-14 09:52:58 +01:00
Oliver Davies dccc8f1875 Add node types explicitly 2018-04-20 00:10:28 +01:00
Oliver Davies f8a864b6cc Use the NodeCreationTrait, remove validParams 2018-04-19 23:46:19 +01:00
Oliver Davies 41bcbb50ab
Update README.md 2018-04-19 23:29:38 +01:00
Oliver Davies 442ec19bc1 Use EntityKernelTestBase 2018-04-19 14:18:10 +01:00
Oliver Davies 4ec57cdf2e Add installation instructions 2018-04-03 08:46:46 +01:00
Oliver Davies 38314a0ed2 Use array_map 2018-04-02 21:29:19 +01:00
Oliver Davies 238dd8fb68 Rename method 2018-03-20 19:26:28 +00:00
Oliver Davies 4238580d66 Remove extra lines 2018-03-20 18:58:02 +00:00
Oliver Davies 349ec8f965 Add tdd_dublin_test sub-module 2018-03-20 18:58:02 +00:00
Oliver Davies 81cb121a99 Change tests to kernel tests
Fixes #1
2017-11-21 10:06:09 +00:00
Oliver Davies ab524316b6 Rename file 2017-11-21 00:51:00 +00:00
Oliver Davies eb5465c5a6 Update README 2017-11-07 01:10:11 +00:00
Oliver Davies af09babd7a Add comments 2017-10-30 10:44:40 +00:00
Oliver Davies 5574c5ee9a Update README 2017-10-30 10:44:36 +00:00
Oliver Davies 5ead634ab2 Add dependencies section 2017-10-30 10:44:27 +00:00
Oliver Davies 66389b7a21 Update README 2017-10-30 10:44:17 +00:00
Oliver Davies 81af444a97 Update sort criteria
Remove the default "Authored on" sort criteria and replace it
with a "Content: Title" sort to order the items alphabetically.
2017-10-30 10:44:16 +00:00
Oliver Davies 461e66bf53 Assert expected node order 2017-10-30 10:44:16 +00:00
Oliver Davies 992390b803 Retrieve the data from the view 2017-10-30 10:44:16 +00:00
Oliver Davies fc8eb51bdf Create some test content
Create several different nodes in an incorrect order so that
we can see the test fail when asserting that they should be
ordered alphabetically.
2017-10-30 10:44:16 +00:00
Oliver Davies 569d4a80dc Add results order test 2017-10-30 10:44:16 +00:00
Oliver Davies f6d572211f Add type condition to the view 2017-10-30 10:44:16 +00:00
Oliver Davies 744556a681 Compare the expected nids with the view result 2017-10-30 10:44:16 +00:00
Oliver Davies 88a0399f39 Get the result of the view 2017-10-30 10:44:15 +00:00
Oliver Davies a104767e10 Create some test content
This includes some content of different types, as well as a
mixture of published and unpublished content. This mean that
we can test that these nodes are not returned in addition to
ensuring that the correct ones are returned.
2017-10-30 10:44:15 +00:00
Oliver Davies f713d225bf Add correct nodes test 2017-10-30 10:44:15 +00:00
Oliver Davies dfda72bcd7 Add missing config
Add the page node type.

Prevents UnmetDependenciesException due to the pages node type
being a dependency of the view.
2017-10-30 10:44:15 +00:00
Oliver Davies 7c611e4a8a Add module dependencies 2017-10-30 10:44:15 +00:00
Oliver Davies 51d91feb46 Add pages view
Fixes the 404 error by adding the /pages view.
2017-10-30 10:44:15 +00:00
Oliver Davies f16b0df762 Add page test
This test will fail and return a 404 error code rather than
a 200 code as the page hasn't been built yet.
2017-10-30 10:44:15 +00:00
Oliver Davies 05cd5901d5 Add test structure 2017-10-30 10:44:14 +00:00
Oliver Davies 4c49bde2bf Initial commit 2017-10-30 10:44:14 +00:00