Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pacproduct’s picture

Title: Let's add test coverate » Let's add test coverage
vijaycs85’s picture

Status: Active » Needs review
FileSize
5.04 KB

Initial patch...

Status: Needs review » Needs work

The last submitted patch, 2: node-admin-2389333-test-coverage-2.patch, failed testing.

vijaycs85’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Wrong version...

Status: Needs work » Needs review
pacproduct’s picture

My review comments below.

  1. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +   * Set up some required modules
    

    (minor) Period missing.

  2. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // We can only test the plugins that don't require other modules
    

    (minor) Period missing.

  3. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +
    

    (minor) Unnecessary blank line.

  4. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // or invalid content type.
    

    (minor) Capital letter for "or" maybe?

  5. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // Create a new page node
    

    (minor) Period missing.

  6. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +
    

    I would have put the blank line after $this->drupalLogin() instead.
    Or none at all here.

  7. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // Create a page node and a story
    

    (minor) Period missing.

  8. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // Only specific content type in it's own admin page.
    

    (minor) Should be "its".

  9. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +   *   Node object to asset.
    

    Typo: Should be "assert".

  10. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +   *
    

    Is that empty line needed (applies to other functions as well)?

  11. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +
    

    (minor) Unnecessary blank line.

  12. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +   *   Node object to asset.
    

    Typo: Should be "assert".

  13. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +    // Make sure node present with link.
    

    Comment doesn't match what is being tested.

  14. +++ b/tests/node_admin_ui.test
    @@ -0,0 +1,143 @@
    +
    

    (minor) Unnecessary blank line.

vijaycs85’s picture

FileSize
5.09 KB
4.37 KB

thanks for the review @pacproduct. Here is an update for all items in #6

pacproduct’s picture

Looks okay to me.

vijaycs85’s picture

Few more empty line fixes.

pacproduct’s picture

Status: Needs review » Reviewed & tested by the community

  • vijaycs85 committed 11933bc on 6.x-1.x
    Issue #2389333 by vijaycs85, pacproduct: Lets add test coverage
    
vijaycs85’s picture

Status: Reviewed & tested by the community » Fixed
vijaycs85’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Fixed » Active

Let's port to D7

SwapS’s picture

Machi ,

Attached is the patch for D7 port

Cheers
SwapS

SwapS’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: node-admin-2389333-test-coverage-14.patch, failed testing.

saurabh-chugh’s picture

Hey

Looks like one of the required permission is missing.
Re-attaching updated patch

Saurabh Chugh

saurabh-chugh’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 17: node-admin-2389333-test-coverage-17.patch, failed testing.

SwapS’s picture

One more update ..
This should pass test run

Cheers
SwapS

saurabh-chugh’s picture

Status: Needs work » Needs review

  • vijaycs85 committed 0aa1dd6 on 7.x-1.x authored by SwapS
    Issue #2389333 by vijaycs85, SwapS, saurabh-chugh: Let's add test...
vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

vijaycs85’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.