first pass RT4 merge, RT#13852
[freeside.git] / rt / t / web / html / delete-article-name-method.html
1 <%INIT>
2 # This is used by t/web/articles-links.t. Since we fork off a server
3 # under most test configurations, and we need a way to run code in the
4 # middle of the test script, we have to play at shenanigans to delete
5 # RT::Article's Name method. Other options were a Plack::Middleware that
6 # eval'd code given by paths like /__perl/(.+) (is scary), a signal
7 # handler (fails under apache), and only running articles-links.t for
8 # inline tests (fails under apache and standalone)
9
10 delete $RT::Article::{Name};
11
12 </%INIT>
13
14 <% RT::Article->can('Name') ? '{exists}' : '{deleted}' %>
15