convert test checking middleware set in config to setting middleware in plugin
authorGraham Knop <haarg@haarg.org>
Fri, 19 Jun 2020 20:35:26 +0000 (22:35 +0200)
committerGraham Knop <haarg@haarg.org>
Fri, 19 Jun 2020 21:49:53 +0000 (23:49 +0200)
commita21b003477f442246a2e68d0d4ec8267332b09bf
treedfa44195607b00a0e506eec5187fd0530b263484
parent479ca942e35e0764d3a48d4e49da4cc8c33133f8
convert test checking middleware set in config to setting middleware in plugin

The issue that the test was checking was if a plugin could set up
middleware. It was using an external plugin for this, but we can
trivially include a test plugin to check the same behavior.
maint/Makefile.PL.include
t/lib/TestMiddlewareFromPlugin.pm [moved from t/lib/TestMiddlewareFromConfig.pm with 55% similarity]
t/lib/TestMiddlewareFromPlugin/Controller/Root.pm [moved from t/lib/TestMiddlewareFromConfig/Controller/Root.pm with 80% similarity]
t/lib/TestMiddlewareFromPlugin/Custom.pm [moved from t/lib/TestMiddlewareFromConfig/Custom.pm with 63% similarity]
t/lib/TestMiddlewareFromPlugin/SetMiddleware.pm [new file with mode: 0644]
t/lib/TestMiddlewareFromPlugin/share/static/forced.txt [moved from t/lib/TestMiddlewareFromConfig/share/static/forced.txt with 100% similarity]
t/lib/TestMiddlewareFromPlugin/share/static/message.txt [moved from t/lib/TestMiddlewareFromConfig/share/static/message.txt with 100% similarity]
t/lib/TestMiddlewareFromPlugin/share/static2/message2.txt [moved from t/lib/TestMiddlewareFromConfig/share/static2/message2.txt with 100% similarity]
t/lib/TestMiddlewareFromPlugin/share/static3/message3.txt [moved from t/lib/TestMiddlewareFromConfig/share/static3/message3.txt with 100% similarity]
t/lib/TestMiddlewareFromPlugin/testmiddlewarefromplugin.pl [moved from t/lib/TestMiddlewareFromConfig/testmiddlewarefromconfig.pl with 74% similarity]
t/plack-middleware-plugin.t [moved from t/plack-middleware-config.t with 87% similarity, mode: 0755]