Commit graph

686 commits

Author SHA1 Message Date
40228b36f4 4g: Add more assertions 2020-11-14 10:09:38 +00:00
3723a0af0e 4g: Install node_access table 2020-11-14 10:09:38 +00:00
b53cfec4dd 4g: Install config for the filter module 2020-11-14 10:09:38 +00:00
48c2724736 4g: Add an article 2020-11-14 10:09:38 +00:00
9b7d9b3feb 4f: Enable the node module 2020-11-14 10:09:38 +00:00
80a1f88b2c 4f: Enable autowiring for ArticleRepository 2020-11-14 10:09:38 +00:00
4dbb334a6f 4f: Use node storage within getAll() 2020-11-14 10:09:38 +00:00
f38f21fdc8 4e: Add getAll() method 2020-11-14 10:09:38 +00:00
f194015f30 4d: Add import and enable the module 2020-11-14 10:09:38 +00:00
a6a2ad22e4 4d: Add ArticleRepository as a service 2020-11-14 10:09:38 +00:00
699122e83a 4d: Create the ArticleRepository 2020-11-14 10:09:38 +00:00
3e46173860 4c: Try to load the ArticleRepository 2020-11-14 10:09:38 +00:00
48ab1c9209 4b: Test it returns blog posts 2020-11-14 10:09:38 +00:00
9484d924a1 3e: Add page text
Replace the empty render array with one that returns the expected text.
2020-11-14 10:09:38 +00:00
ef1e960f91 3e: Add more assertions
Add more assertions to ensure that the correct page title is returned as
well as some text on the page.

This fails as the expected test is not returned.
2020-11-14 10:09:38 +00:00
4583075a3e 3d: Add BlogPageController
Add the BlogPageController that is referenced within
`my_module.routing.yml`.

We will need to return a render array, but for now let’s return an empty
array.

The test now passes as we are getting the expected response code.
2020-11-14 10:09:38 +00:00
782648fef2 3c: Enable the node module
Enable the node module within the test to add the `access content`
permission.

This fails, and returns a 500 response code rather than the expected 200
response code.
2020-11-14 10:09:38 +00:00
c7ef94c0d5 3b: Add blog page route
Add a `my_module.routing.yml` file that adds the missing route for
`/blog`.

This fails, and returns a 403 response code rather than the expected 200
response code.
2020-11-14 10:09:38 +00:00
151803382e 3a: Add blog page functional test
Add the new `BlogPageTest` functional test to ensure that anonymous
users can access the `/blog` page.

This fails, and returns a 404 response code rather than the expected 200
response code.
2020-11-14 10:09:38 +00:00
9df597c965 2b: Admin page access for admin users
Ensure that users with the `access administration pages` permission can
access the site’s administration pages.
2020-11-14 10:09:38 +00:00
7e0a0c3762 2a: Admin page access for anonymous users
Ensure that anonymous users cannot access the site’s administration
pages.
2020-11-14 10:09:38 +00:00
fd921d3e4c 1d: Add first functional test
Ensure that anonymous users can view the site’s front page.
2020-11-14 10:09:38 +00:00
2dafec2f67 1b: Add my_module.info.yml
Add the my_module.info.yml file so that the module can be enabled.
2020-11-14 10:09:38 +00:00
e859418cbd Initial commit 2020-11-14 10:09:37 +00:00
fbf2171d25 Make the first blog test more generic 2020-11-14 00:39:39 +00:00
fb06cce56c Update the assertion count 2020-11-13 23:53:24 +00:00
1baead38fd Add opening PHP tags for new examples 2020-11-13 23:53:13 +00:00
e1e137f55e Replace instances of assertResponse 2020-11-13 23:52:51 +00:00
a029e6223c Update Composer test script 2020-11-13 22:19:57 +00:00
fa44d26bde Update first test 2020-11-13 22:16:36 +00:00
077631bd32 Remove unused keys 2020-11-13 21:17:52 +00:00
f9bf333977 Replace references to symfony CLI with DDEV 2020-11-13 21:14:49 +00:00
646fe86d15 Update SIMPLETEST_BASE_URL and SIMPLETEST_DB
Update the base URL to work inside DDEV, and the DB connection details
to use `/dev/shm` for better performance.
2020-11-13 20:47:16 +00:00
ccd5b423f6 Update local development documentation
Replace the Symfony web server documentation with DDEV, and PHP's local
web server.

This should be one less new thing for people to learn and should be more
familiar to Drupal developers.
2020-11-13 17:29:21 +00:00
712f2805d2 Update feedback email address 2020-11-13 16:27:52 +00:00
8f5254045f Finish demo 2020-09-09 17:33:50 +01:00
c4148c07d5 Initial commit 2020-09-09 17:33:12 +01:00
Oliver Davies
80ccac2d43 Export PDFs 2020-05-13 02:48:50 +01:00
Oliver Davies
66c6e5617a Stop running Prettier 2020-05-12 21:49:33 +01:00
Oliver Davies
0d5e034487 Update slides after NWDUG 2020-05-12 21:49:33 +01:00
Oliver Davies
4c0756d9aa Update slides after CMS Philly 2020-05-12 15:37:06 +01:00
7cad32c9ef Add 5d: Refactor unit tests
Fixes #14
2020-03-19 23:39:01 +00:00
a13636a2f2 Use a method for sorting articles
Fixes #13
2020-03-19 23:23:41 +00:00
a1529f22d7 Add an alias for the entity type manager
Remove deprecation warnings

Fixes #12
2020-03-19 23:21:02 +00:00
f38ca67efb Place my_module within a custom directory
Fixes #11
2020-03-19 20:30:37 +00:00
33e92bbb1f
Add a note for non-Symfony server users 2020-03-19 11:06:39 +00:00
b6507ffd0e
Fix title and jump link 2020-03-19 11:02:38 +00:00
a03ec1360b Typo 2020-03-18 19:38:14 +00:00
9e3d3fd7ef 4g: Make it easier to see where the lines go
Fixes #4
2020-03-18 19:36:14 +00:00
ee1d9beb82 No need for prettier 2020-03-18 13:39:14 +00:00