Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Albert Volkman’s picture

Status: Active » Needs review
FileSize
28.86 KB

Converted.

Albert Volkman’s picture

Ack, that's ugly. Try this instead.

Status: Needs review » Needs work

The last submitted patch, convert_schematest_to_psr0-1598606-2.patch, failed testing.

Niklas Fiekas’s picture

Looks like the problem is the same as in #1598620: Convert uuid.test to PSR-0. What commands/steps are you using to create the patch?

RobLoach’s picture

Since there is only one test in schema.test, we could probably just use the Common namespace?

Albert, this might help...

git clone --recursive --branch 8.x http://git.drupal.org/project/drupal.git
cd drupal
git checkout -b 1598606
git mv core/modules/system/tests/schema.test core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php
MAKE THE CHANGES IN SCHEMATEST!!!
git add core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php
MAKE THE CHANGES IN SYSTEM.INFO!!!!
git add core/modules/system/system.info
git status
CHECK YOURSELF BEFORE YOU WRECK YOURSELF!!!
git commit -m "Issue #1598606 by Albert Volkman: Convert schema.test to PSR-0."
git diff -C -M5% 8.x 1598606 > 1598606.patch

Patches sometimes get confused when there are files moving. Hopefully that'll help you figure out what was wrong.

Albert Volkman’s picture

Thanks for the direction, Rob! I guess I'm still learning to do git properly. Let's give this a go.

RobLoach’s picture

Status: Needs work » Needs review
FileSize
1.35 KB

Well done! Just needed a reroll for system.info.

Status: Needs review » Needs work

The last submitted patch, 1598606.patch, failed testing.

Niklas Fiekas’s picture

We need a reroll with another use statement for Exception: use Exception;.

Albert Volkman’s picture

Status: Needs work » Needs review
FileSize
1.37 KB

Added.

RobLoach’s picture

Status: Needs review » Reviewed & tested by the community
jhodgdon’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Needs quick reroll (probably due to clashing with other PSR-0 commits today, this doesn't apply with git apply any more).

Niklas Fiekas’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
1.36 KB

As always, the info file ;)

RobLoach’s picture

Status: Needs review » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. committed/pushed to 8.x.

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