Remove the feeds module
This commit is contained in:
parent
acfd1cca8d
commit
0c98be96eb
851 changed files with 840 additions and 10348 deletions
|
@ -87,14 +87,5 @@
|
|||
"processed": "\n <p>If you've written or seen automated tests in PHP, you'll have seen lines like this:<\/p>\n\n<pre><code class=\"php\">self::assertTrue(FALSE);\n<\/code><\/pre>\n\n<p>But, did you know assertions can be used outside of tests.<\/p>\n\n<p>PHP has an <code>assert()<\/code> function that can be used anywhere.<\/p>\n\n<p>For example, if I had this code:<\/p>\n\n<pre><code class=\"php\">$node = Node::load(1);\n\nassert($node instanceof NodeInterface);\nassert($node->bundle() === 'page');\n<\/code><\/pre>\n\n<p>I know <code>$node<\/code> is a node with the correct bundle type and I can continue.<\/p>\n\n<p>I've made my assumptions explicit.<\/p>\n\n<p>If <code>$node<\/code> is not the correct type or returns an unexpected bundle, the assertion will fail and an Exception will be thrown.<\/p>\n\n<p>I think this is better than assuming or hoping the values are as you expect, and it also makes the intent of the code much easier to see and understand.<\/p>\n\n<p>If you haven't tried <code>assert()<\/code> before, give it a try.<\/p>\n\n ",
|
||||
"summary": null
|
||||
}
|
||||
],
|
||||
"feeds_item": [
|
||||
{
|
||||
"imported": "1970-01-01T00:32:50+00:00",
|
||||
"guid": null,
|
||||
"hash": "6be3e710df2ce66a5d47787fde5a3e20",
|
||||
"target_type": "feeds_feed",
|
||||
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue